diff options
author | Allan Wang <me@allanwang.ca> | 2020-02-29 23:35:07 -0800 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2020-02-29 23:35:07 -0800 |
commit | 118635f6630487e93a519e9a63151d95b31ee8b1 (patch) | |
tree | 354c8b0a52866ad62e1b20860517bc5287401cb4 /app/src/main/kotlin/com/pitchedapps/frost/iitems/NotificationIItem.kt | |
parent | 34e5eebbc2dfdd9e71ba200c044f3637ba89aaa2 (diff) | |
parent | e732e30d97babca49ba5f7d97aea1620ba14024b (diff) | |
download | frost-118635f6630487e93a519e9a63151d95b31ee8b1.tar.gz frost-118635f6630487e93a519e9a63151d95b31ee8b1.tar.bz2 frost-118635f6630487e93a519e9a63151d95b31ee8b1.zip |
Merge remote-tracking branch 'origin/dev' into save-image
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/iitems/NotificationIItem.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/iitems/NotificationIItem.kt | 4 |
1 files changed, 2 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 8624fff0..9d3b59eb 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/iitems/NotificationIItem.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/iitems/NotificationIItem.kt @@ -51,7 +51,7 @@ class NotificationIItem(val notification: FrostNotif, val cookie: String) : ) { companion object { - fun bindEvents(adapter: ItemAdapter<NotificationIItem>, fbCookie: FbCookie) { + fun bindEvents(adapter: ItemAdapter<NotificationIItem>, fbCookie: FbCookie, prefs: Prefs) { adapter.fastAdapter?.apply { selectExtension { isSelectable = false @@ -65,7 +65,7 @@ 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) + v!!.context.launchWebOverlay(if (notif.url.isIndependent) notif.url else FbItem.NOTIFICATIONS.url, fbCookie, prefs) true } } |