aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/iitems
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2020-03-01 23:00:09 -0800
committerAllan Wang <me@allanwang.ca>2020-03-01 23:00:09 -0800
commite19c87ae367154bd5bbf59f080eee4976e64e2da (patch)
tree52f30b2d97dee998aabe46feffc1f4999275ec42 /app/src/main/kotlin/com/pitchedapps/frost/iitems
parent10d6cfdecb790e235e09641b18b4a10a645f87a0 (diff)
downloadfrost-e19c87ae367154bd5bbf59f080eee4976e64e2da.tar.gz
frost-e19c87ae367154bd5bbf59f080eee4976e64e2da.tar.bz2
frost-e19c87ae367154bd5bbf59f080eee4976e64e2da.zip
Format code
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/iitems')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/iitems/NotificationIItem.kt9
1 files changed, 7 insertions, 2 deletions
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 9d3b59eb..3150ce6d 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/iitems/NotificationIItem.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/iitems/NotificationIItem.kt
@@ -65,7 +65,11 @@ class NotificationIItem(val notification: FrostNotif, val cookie: String) :
)
}
// TODO temp fix. If url is dependent, we cannot load it directly
- v!!.context.launchWebOverlay(if (notif.url.isIndependent) notif.url else FbItem.NOTIFICATIONS.url, fbCookie, prefs)
+ v!!.context.launchWebOverlay(
+ if (notif.url.isIndependent) notif.url else FbItem.NOTIFICATIONS.url,
+ fbCookie,
+ prefs
+ )
true
}
}
@@ -96,7 +100,8 @@ class NotificationIItem(val notification: FrostNotif, val cookie: String) :
}
}
- class ViewHolder(itemView: View) : FastAdapter.ViewHolder<NotificationIItem>(itemView), KoinComponent {
+ class ViewHolder(itemView: View) : FastAdapter.ViewHolder<NotificationIItem>(itemView),
+ KoinComponent {
private val prefs: Prefs by inject()