Tusky-App-Android/app/src/main/java/com/keylesspalace/tusky/viewdata
Konrad Pozniak b2c0b18c8e
Refactor notifications to Kotlin & paging (#4026)
This refactors the NotificationsFragment and related classes to Kotlin &
paging.
While trying to preserve as much of the original behavior as possible,
this adds the following improvements as well:
- The "show notifications filter" preference was added again
- The "load more" button now has a background ripple effect when clicked
- The "legal" report category of Mastodon 4.2 is now supported in report
notifications
- Unknown notifications now display "unknown notification type" instead
of an empty line

Other code quality improvements:
- All views from xml layouts are now referenced via ViewBindings
- the classes responsible for showing system notifications were moved to
a new package `systemnotifications` while the classes from this
refactoring are in `notifications`
- the id of the local Tusky account is now called `tuskyAccountId` in
all places I could find

closes https://github.com/tuskyapp/Tusky/issues/3429

---------

Co-authored-by: Zongle Wang <wangzongler@gmail.com>
2024-05-03 18:27:10 +02:00
..
AttachmentViewData.kt upgrade ktlint plugin to 12.0.3 (#4169) 2024-01-04 17:00:55 +01:00
NotificationViewData.kt Refactor notifications to Kotlin & paging (#4026) 2024-05-03 18:27:10 +02:00
PollViewData.kt Replace Gson library with Moshi (#4309) 2024-04-02 21:01:04 +02:00
StatusViewData.kt Refactor notifications to Kotlin & paging (#4026) 2024-05-03 18:27:10 +02:00
TrendingViewData.kt Convert some sealed classes to interfaces (#4347) 2024-03-29 20:11:53 +01:00