mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-29 13:27:57 +01:00
Upgrade support library. Switch gradle build tools and AS to 2.0. Adapt code to new support lib
This commit is contained in:
@@ -18,13 +18,10 @@ class LoginPreference @JvmOverloads constructor(context: Context, attrs: Attribu
|
||||
override fun onBindViewHolder(holder: PreferenceViewHolder) {
|
||||
super.onBindViewHolder(holder)
|
||||
|
||||
with(holder.itemView.image_view) {
|
||||
if (getPersistedString("").isNullOrEmpty()) {
|
||||
setImageResource(android.R.color.transparent)
|
||||
} else {
|
||||
setImageDrawable(ContextCompat.getDrawable(context, R.drawable.ic_done_green_24dp))
|
||||
}
|
||||
}
|
||||
holder.itemView.image_view.setImageResource(if (getPersistedString("").isNullOrEmpty())
|
||||
android.R.color.transparent
|
||||
else
|
||||
R.drawable.ic_done_green_24dp)
|
||||
}
|
||||
|
||||
override public fun notifyChanged() {
|
||||
|
||||
Reference in New Issue
Block a user