aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/iitems
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2020-07-18 18:08:31 -0700
committerAllan Wang <me@allanwang.ca>2020-07-18 18:08:31 -0700
commit0f2a57143438de0d86485c0eddd0e766ad2fcee5 (patch)
treec8e3ed726a3cb85525aa347107ab7a96b59be6ca /app/src/main/kotlin/com/pitchedapps/frost/iitems
parentfb38a5d1abafda5a74bdacd683033e3d48dff018 (diff)
downloadfrost-0f2a57143438de0d86485c0eddd0e766ad2fcee5.tar.gz
frost-0f2a57143438de0d86485c0eddd0e766ad2fcee5.tar.bz2
frost-0f2a57143438de0d86485c0eddd0e766ad2fcee5.zip
Update fast adapter
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/iitems')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/iitems/GenericIItems.kt4
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/iitems/NotificationIItem.kt2
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/iitems/TabIItem.kt2
3 files changed, 4 insertions, 4 deletions
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<Any>) {
+ override fun bindView(item: HeaderIItem, payloads: List<Any>) {
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<Any>) {
+ override fun bindView(item: TextIItem, payloads: List<Any>) {
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<Any>) {
+ override fun bindView(item: NotificationIItem, payloads: List<Any>) {
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<TabIItem.ViewHolder>(
val image: ImageView by bindView(R.id.image)
val text: TextView by bindView(R.id.text)
- override fun bindView(item: TabIItem, payloads: MutableList<Any>) {
+ override fun bindView(item: TabIItem, payloads: List<Any>) {
val isInToolbar = adapterPosition < 4
val color = if (isInToolbar) prefs.iconColor else prefs.textColor
image.setIcon(item.item.icon, 20, color)