diff options
author | Allan Wang <me@allanwang.ca> | 2019-08-06 00:52:23 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-06 00:52:23 -0700 |
commit | d500d1dd6e05c6128dcb15fe8e15acb2aaf979cd (patch) | |
tree | 98caedbfd7a6b154ca6401c6a389cb5a08bdee3d /app/src/main/kotlin/com/pitchedapps/frost/iitems/NotificationIItem.kt | |
parent | c78e670c2ac74e0c1b1fda4259cdcf69949e0d95 (diff) | |
parent | 59a462e6f23d046236bc20e6ac9c9464ed670f58 (diff) | |
download | frost-d500d1dd6e05c6128dcb15fe8e15acb2aaf979cd.tar.gz frost-d500d1dd6e05c6128dcb15fe8e15acb2aaf979cd.tar.bz2 frost-d500d1dd6e05c6128dcb15fe8e15acb2aaf979cd.zip |
Merge pull request #1503 from AllanWang/format
Format
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 | 5 |
1 files changed, 4 insertions, 1 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 8b196a64..cfbb928b 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/iitems/NotificationIItem.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/iitems/NotificationIItem.kt @@ -54,7 +54,10 @@ class NotificationIItem(val notification: FrostNotif, val cookie: String) : val notif = item.notification if (notif.unread) { FrostRunnable.markNotificationRead(v!!.context, notif.id, item.cookie) - adapter.set(position, NotificationIItem(notif.copy(unread = false), item.cookie)) + adapter.set( + position, + NotificationIItem(notif.copy(unread = false), item.cookie) + ) } // 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) |