chinwag-android/app/src/main/java/com/keylesspalace/tusky
Konrad Pozniak c7387c7b52
prevent mixup of account timelines (#4599)
This does 2 things:

- Removes `AccountSwitchInterceptor`, the main culprit for the bug. APIs
can no longer change their base url after they have been created. As a
result they are not Singletons anymore.
- Additionally, I refactored how MainActivity handles Intents to make it
less likely to have multiple instances of it active.

Here is how I could reliably reproduce the bug:

- Be logged in with account A and B
- Write a post with account A, cancel it before it sends (go into flight
mode for that)
- Switch to account B
- Open the "this post failed to send" notification from account A,
drafts will open
- Go back. You are in the MainActivity of account A, everything seems
fine.
- Go back again. You are in the old, now broken MainActivity of account
B. It uses the database of account B but the network of account A.
Refreshing will show posts from A.

closes #4567 
closes #4554
closes #4402 
closes #4148
closes #2663
and possibly #4588
2024-08-14 18:58:12 +02:00
..
adapter split out FilteredStatusViewHolder from StatusBaseViewHolder (#4543) 2024-07-05 10:13:37 +02:00
appstore fix (un)muting conversations (#4525) 2024-06-22 11:02:51 +02:00
components prevent mixup of account timelines (#4599) 2024-08-14 18:58:12 +02:00
db add more options to default reply visibility setting (#4568) 2024-08-02 17:15:10 +02:00
di prevent mixup of account timelines (#4599) 2024-08-14 18:58:12 +02:00
entity add more options to default reply visibility setting (#4568) 2024-08-02 17:15:10 +02:00
fragment remove unused import (#4482) 2024-05-31 14:49:20 +02:00
interfaces Followed hashtags view improvements (#4475) 2024-05-31 13:43:41 +02:00
json Replace Gson library with Moshi (#4309) 2024-04-02 21:01:04 +02:00
network prevent mixup of account timelines (#4599) 2024-08-14 18:58:12 +02:00
pager upgrade ktlint plugin to 12.0.3 (#4169) 2024-01-04 17:00:55 +01:00
receiver add more options to default reply visibility setting (#4568) 2024-08-02 17:15:10 +02:00
service add more options to default reply visibility setting (#4568) 2024-08-02 17:15:10 +02:00
settings add more options to default reply visibility setting (#4568) 2024-08-02 17:15:10 +02:00
usecase fix (un)muting conversations (#4525) 2024-06-22 11:02:51 +02:00
util fix: RequestBuilder.submitAsync() throwing an Exception if the Glide request is restarted (#4569) 2024-07-14 09:01:01 +02:00
view improved color scheme & theming (#4507) 2024-06-19 16:50:35 +02:00
viewdata Improve translating posts via Mastodon api (#4463) 2024-05-26 08:06:51 +02:00
viewmodel small code improvements / code cleanup (#4502) 2024-06-12 17:17:21 +02:00
worker Replace Dagger-Android with Hilt and remove Kapt (#4423) 2024-05-10 15:55:07 +02:00
AboutActivity.kt Followed hashtags view improvements (#4475) 2024-05-31 13:43:41 +02:00
AccountsInListFragment.kt Fix bot badge in accounts in list fragment (#4474) 2024-05-31 13:42:37 +02:00
BaseActivity.java Fix incorrect theme override outside of MainActivity (#4469) 2024-05-31 13:23:06 +02:00
BottomSheetActivity.kt Replace RxJava3 code with coroutines (#4290) 2024-02-29 15:28:48 +01:00
EditProfileActivity.kt Replace Dagger-Android with Hilt and remove Kapt (#4423) 2024-05-10 15:55:07 +02:00
LicenseActivity.kt Replace Dagger-Android with Hilt and remove Kapt (#4423) 2024-05-10 15:55:07 +02:00
ListsActivity.kt improved color scheme & theming (#4507) 2024-06-19 16:50:35 +02:00
MainActivity.kt prevent mixup of account timelines (#4599) 2024-08-14 18:58:12 +02:00
StatusListActivity.kt only check once for filters v2 availability (#4539) 2024-07-03 21:18:09 +02:00
TabData.kt Refactor notifications to Kotlin & paging (#4026) 2024-05-03 18:27:10 +02:00
TabPreferenceActivity.kt Replace Dagger-Android with Hilt and remove Kapt (#4423) 2024-05-10 15:55:07 +02:00
TuskyApplication.kt Replace "Hide compose button while scrolling" setting with bottom padding (#4486) 2024-06-05 19:36:58 +02:00
ViewMediaActivity.kt Followed hashtags view improvements (#4475) 2024-05-31 13:43:41 +02:00