chinwag-android/app/src/main/java/com/keylesspalace/tusky
Konrad Pozniak 75c42cb5c1
prevent MainActivity from leaking through the DrawerImageLoader singleton (#4153)
Another fix for a memory leak. This one is not as big as #4150, but
still worth fixing for memory constrained devices imo.
The `DrawerImageLoader` implementation (a global singleton) references a
member of the `MainActivity`, causing the whole activity to leak.

This weird construct was introduced in #1989 to fix a crash, but I think
since we migrated to coroutines it is no longer necessary because all
calls get correctly cancelled. I tried reproducing the crash but could
not, so I'm pretty sure it is fine. I would appreciate it if someone
else could try it as well though.

(The crash could be reproduced on slow internet, when
`onFetchUserInfoSuccess` was called while the activity was being
destroyed, causing Glide to crash the app because it can't use destroyed
activities. `onFetchUserInfoSuccess` is now no longer called in this
case because it is inside a `lifecycleScope.launch` block.)
2023-12-10 09:44:53 +01:00
..
adapter fix memory leak in CompositeWithOpaqueBackground (#4150) 2023-12-10 07:37:54 +01:00
appstore 3532: Show badge on conversations tab on new conversations (#3890) 2023-10-15 21:39:38 +02:00
components correctly count emojis when composing a post (#4152) 2023-12-10 07:38:25 +01:00
db don't rehide filtered posts on interaction (#4130) 2023-12-05 19:29:01 +01:00
di Remove unneeded code 2023-09-11 21:58:56 +02:00
entity Fix deserialization of the response from friendica on api/v2/instance (#4103) 2023-11-13 10:05:28 +01:00
fragment fix image scaling after swipe down gesture ended in ViewImageFragment (#4135) 2023-12-05 19:28:52 +01:00
interfaces Fix lint warnings (#4019) 2023-09-13 09:20:53 +02:00
json update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +01:00
network Support "replies policy" for lists (#4072) 2023-10-26 11:21:04 +02:00
pager Keep the tabs adapter over the life of the viewpager (#3255) 2023-02-15 19:17:59 +01:00
receiver Fix lint warnings (#4019) 2023-09-13 09:20:53 +02:00
service improve local status updates (#3480) 2023-09-26 09:08:58 +02:00
settings feat: Hide self-boosts (#3534) (#4101) 2023-11-13 10:04:39 +01:00
usecase fix boost button not updating when boosting (#4048) 2023-10-07 08:59:36 +02:00
util fix memory leak in CompositeWithOpaqueBackground (#4150) 2023-12-10 07:37:54 +01:00
view 2512: Allow more than 5 tabs (#4051) 2023-10-11 09:54:01 +02:00
viewdata update minSdk to 24, cleanup code (#4014) 2023-09-12 19:25:45 +02:00
viewmodel Support "replies policy" for lists (#4072) 2023-10-26 11:21:04 +02:00
worker Show notifications from workers (#3760) 2023-06-29 18:37:27 +02:00
AboutActivity.kt Show additional bug report info in AboutActivity (#3802) 2023-08-03 12:20:35 +02:00
AccountsInListFragment.kt Simplify repeated code that shows errors (#3762) 2023-06-19 23:49:20 +02:00
BaseActivity.java fix theme preference defaults (#4061) 2023-10-14 14:20:20 +02:00
BottomSheetActivity.kt Use case-insensitive checks when comparing account URLs in search (#3931) 2023-08-06 13:45:48 +02:00
EditProfileActivity.kt Apply PR suggestions: 2023-08-24 10:06:25 +02:00
LicenseActivity.kt update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +01:00
ListsActivity.kt Support "replies policy" for lists (#4072) 2023-10-26 11:21:04 +02:00
MainActivity.kt prevent MainActivity from leaking through the DrawerImageLoader singleton (#4153) 2023-12-10 09:44:53 +01:00
SplashActivity.kt remove legacy notification channel cleanup (#2550) 2022-05-25 20:54:25 +02:00
StatusListActivity.kt Add support for v2/instance (#4062) 2023-10-25 12:53:10 +02:00
TabData.kt Add "Trending posts" (statuses) feed (#4007) 2023-09-14 22:37:41 +02:00
TabPreferenceActivity.kt 2512: Allow more than 5 tabs (#4051) 2023-10-11 09:54:01 +02:00
TuskyApplication.kt fix theme preference defaults (#4061) 2023-10-14 14:20:20 +02:00
ViewMediaActivity.kt Migrate to androidx-media3 video player (#3857) 2023-08-10 19:31:55 +02:00