Tusky-App-Android/app/src/main/java/com/keylesspalace/tusky
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
..
adapter Refactor notifications to Kotlin & paging (#4026) 2024-05-03 18:27:10 +02:00
appstore Refactor notifications to Kotlin & paging (#4026) 2024-05-03 18:27:10 +02:00
components Refactor notifications to Kotlin & paging (#4026) 2024-05-03 18:27:10 +02:00
db Refactor notifications to Kotlin & paging (#4026) 2024-05-03 18:27:10 +02:00
di Refactor notifications to Kotlin & paging (#4026) 2024-05-03 18:27:10 +02:00
entity Refactor notifications to Kotlin & paging (#4026) 2024-05-03 18:27:10 +02:00
fragment Refactor notifications to Kotlin & paging (#4026) 2024-05-03 18:27:10 +02:00
interfaces Refactor notifications to Kotlin & paging (#4026) 2024-05-03 18:27:10 +02:00
json Replace Gson library with Moshi (#4309) 2024-04-02 21:01:04 +02:00
network Refactor notifications to Kotlin & paging (#4026) 2024-05-03 18:27:10 +02:00
pager
receiver Refactor notifications to Kotlin & paging (#4026) 2024-05-03 18:27:10 +02:00
service Refactor notifications to Kotlin & paging (#4026) 2024-05-03 18:27:10 +02:00
settings Refactor notifications to Kotlin & paging (#4026) 2024-05-03 18:27:10 +02:00
usecase Refactor notifications to Kotlin & paging (#4026) 2024-05-03 18:27:10 +02:00
util Refactor notifications to Kotlin & paging (#4026) 2024-05-03 18:27:10 +02:00
view full sdk 34 support (#4224) 2024-02-23 10:27:19 +01:00
viewdata Refactor notifications to Kotlin & paging (#4026) 2024-05-03 18:27:10 +02:00
viewmodel Remove redundant crossinline (#4348) 2024-03-29 21:12:49 +01:00
worker Refactor notifications to Kotlin & paging (#4026) 2024-05-03 18:27:10 +02:00
AboutActivity.kt Machine translation of posts (#4307) 2024-03-09 16:12:18 +01:00
AccountsInListFragment.kt
BaseActivity.java Refactor notifications to Kotlin & paging (#4026) 2024-05-03 18:27:10 +02:00
BottomSheetActivity.kt Replace RxJava3 code with coroutines (#4290) 2024-02-29 15:28:48 +01:00
EditProfileActivity.kt Migrate LiveData to Flow (#4337) 2024-03-27 11:34:17 +01:00
LicenseActivity.kt Optimize I/O code using Okio - part 2 (#4372) 2024-04-14 16:39:29 +02:00
ListsActivity.kt full sdk 34 support (#4224) 2024-02-23 10:27:19 +01:00
MainActivity.kt Refactor notifications to Kotlin & paging (#4026) 2024-05-03 18:27:10 +02:00
SplashActivity.kt
StatusListActivity.kt full sdk 34 support (#4224) 2024-02-23 10:27:19 +01:00
TabData.kt Refactor notifications to Kotlin & paging (#4026) 2024-05-03 18:27:10 +02:00
TabPreferenceActivity.kt
TuskyApplication.kt Refactor notifications to Kotlin & paging (#4026) 2024-05-03 18:27:10 +02:00
ViewMediaActivity.kt Replace RxJava3 code with coroutines (#4290) 2024-02-29 15:28:48 +01:00