Yuito-app-android/app/src/main/java/com/keylesspalace/tusky/components/notifications
Nik Clayton f49b1cc744
Fix exception when updating summary notifications (#3976)
dc9e9f2aeb
modifed the code that fetched the value of EXTRA_NOTIFICATION_TYPE in an
intent, to use getSerializable().

However, the value was being placed in to the intent using putString().

This caused an exception when trying to update the summary notification,
so it would never update.

```
java.lang.ClassCastException: java.lang.String cannot be cast to com.keylesspalace.tusky.entity.Notification$Type
    at com.keylesspalace.tusky.components.notifications.NotificationHelper.updateSummaryNotifications(NotificationHelper.java:321)
    at com.keylesspalace.tusky.components.notifications.NotificationFetcher.fetchAndShow(NotificationFetcher.kt:87)
    at com.keylesspalace.tusky.components.notifications.NotificationFetcher$fetchAndShow$1.invokeSuspend(Unknown Source:14)
```

Fix this by placing the value in to the intent using putSerializable(),
to match how it will be fetched.
2023-08-22 18:22:45 +02:00
..
FollowViewHolder.kt Make links in bios of follow request and follow notifications work (#3646) 2023-05-13 15:32:56 +02:00
NotificationFetcher.kt Show notifications from workers (#3760) 2023-06-29 18:37:27 +02:00
NotificationHelper.java Fix exception when updating summary notifications (#3976) 2023-08-22 18:22:45 +02:00
NotificationsFragment.kt Display notification filter/clear actions as menu items (#3877) 2023-08-19 14:41:10 +02:00
NotificationsLoadStateAdapter.kt Convert NotificationsFragment and related code to Kotlin, use the Paging library (#3159) 2023-03-10 20:12:33 +01:00
NotificationsLoadStateViewHolder.kt Convert NotificationsFragment and related code to Kotlin, use the Paging library (#3159) 2023-03-10 20:12:33 +01:00
NotificationsPagingAdapter.kt Kotlin 1.9.0 (#3835) 2023-08-02 09:04:24 +02:00
NotificationsPagingSource.kt Notification tab cleanups (#3692) 2023-06-11 16:23:52 +02:00
NotificationsRepository.kt Set initialLoadSize = pageSize (#3598) 2023-04-29 19:34:29 +02:00
NotificationsViewModel.kt Display notification filter/clear actions as menu items (#3877) 2023-08-19 14:41:10 +02:00
PushNotificationHelper.kt Only fetch and display a given notification once (#3626) 2023-05-13 16:00:28 +02:00
StatusNotificationViewHolder.kt 3492: Correctly shorten name in drawer and notifications (#3495) 2023-04-08 16:55:32 +02:00
StatusViewHolder.kt Convert NotificationsFragment and related code to Kotlin, use the Paging library (#3159) 2023-03-10 20:12:33 +01:00