From 0f2a57143438de0d86485c0eddd0e766ad2fcee5 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sat, 18 Jul 2020 18:08:31 -0700 Subject: Update fast adapter --- app/src/main/kotlin/com/pitchedapps/frost/iitems/GenericIItems.kt | 4 ++-- app/src/main/kotlin/com/pitchedapps/frost/iitems/NotificationIItem.kt | 2 +- app/src/main/kotlin/com/pitchedapps/frost/iitems/TabIItem.kt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'app/src/main/kotlin/com/pitchedapps/frost/iitems') diff --git a/app/src/main/kotlin/com/pitchedapps/frost/iitems/GenericIItems.kt b/app/src/main/kotlin/com/pitchedapps/frost/iitems/GenericIItems.kt index 5257be5e..746f0c1c 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/iitems/GenericIItems.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/iitems/GenericIItems.kt @@ -83,7 +83,7 @@ open class HeaderIItem( val text: TextView by bindView(R.id.item_header_text) - override fun bindView(item: HeaderIItem, payloads: MutableList) { + override fun bindView(item: HeaderIItem, payloads: List) { text.setTextColor(prefs.accentColor) text.text = item.text text.setBackgroundColor(prefs.nativeBgColor) @@ -112,7 +112,7 @@ open class TextIItem( val text: TextView by bindView(R.id.item_text_view) - override fun bindView(item: TextIItem, payloads: MutableList) { + override fun bindView(item: TextIItem, payloads: List) { text.setTextColor(prefs.textColor) text.text = item.text text.background = createSimpleRippleDrawable(prefs.bgColor, prefs.nativeBgColor) diff --git a/app/src/main/kotlin/com/pitchedapps/frost/iitems/NotificationIItem.kt b/app/src/main/kotlin/com/pitchedapps/frost/iitems/NotificationIItem.kt index 3150ce6d..ab8e7afd 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/iitems/NotificationIItem.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/iitems/NotificationIItem.kt @@ -114,7 +114,7 @@ class NotificationIItem(val notification: FrostNotif, val cookie: String) : private val glide get() = GlideApp.with(itemView) - override fun bindView(item: NotificationIItem, payloads: MutableList) { + override fun bindView(item: NotificationIItem, payloads: List) { val notif = item.notification frame.background = createSimpleRippleDrawable( prefs.textColor, diff --git a/app/src/main/kotlin/com/pitchedapps/frost/iitems/TabIItem.kt b/app/src/main/kotlin/com/pitchedapps/frost/iitems/TabIItem.kt index c1998c04..fcd71031 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/iitems/TabIItem.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/iitems/TabIItem.kt @@ -50,7 +50,7 @@ class TabIItem(val item: FbItem) : KauIItem( val image: ImageView by bindView(R.id.image) val text: TextView by bindView(R.id.text) - override fun bindView(item: TabIItem, payloads: MutableList) { + override fun bindView(item: TabIItem, payloads: List) { val isInToolbar = adapterPosition < 4 val color = if (isInToolbar) prefs.iconColor else prefs.textColor image.setIcon(item.item.icon, 20, color) -- cgit v1.2.3