mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-11-12 22:43:35 +00:00
Added back version checking (and version boxes) after transitioning homepage to MVVM
Fixed several errors caused along the way
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.topjohnwu.magisk.utils
|
||||
|
||||
import android.view.View
|
||||
import androidx.annotation.ColorInt
|
||||
import androidx.annotation.DrawableRes
|
||||
import androidx.appcompat.widget.AppCompatImageView
|
||||
import androidx.appcompat.widget.Toolbar
|
||||
@@ -16,3 +17,8 @@ fun setOnNavigationClickedListener(view: Toolbar, listener: View.OnClickListener
|
||||
fun setImageResource(view: AppCompatImageView, @DrawableRes resId: Int) {
|
||||
view.setImageResource(resId)
|
||||
}
|
||||
|
||||
@BindingAdapter("app:tint")
|
||||
fun setTint(view: AppCompatImageView, @ColorInt tint: Int) {
|
||||
view.setColorFilter(tint)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user