chinwag-android/app/src/main/java/com/keylesspalace/tusky
Konrad Pozniak 401ab6d453
fix crash in AccountListFragment (#4430)
Steps to reproduce: When viewing an account list, very quickly rotate
the screen multiple times. I found this easier to do with an emulator,
just spam the rotation buttons.
```
java.lang.IllegalStateException: Fragment AccountListFragment{50bbc6c} (8a3e6922-e855-45a7-8a49-c9d16e21e438) did not return a View from onCreateView() or this was called before onCreateView().
	at androidx.fragment.app.Fragment.requireView(Fragment.java:2063)
	at com.keylesspalace.tusky.util.ViewLifecycleLazy.getValue(ViewBindingExtensions.kt:32)
	at com.keylesspalace.tusky.components.accountlist.AccountListFragment.getBinding(AccountListFragment.kt:75)
	at com.keylesspalace.tusky.components.accountlist.AccountListFragment.onFetchAccountsFailure(AccountListFragment.kt:390)
	at com.keylesspalace.tusky.components.accountlist.AccountListFragment.access$onFetchAccountsFailure(AccountListFragment.kt:63)
	at com.keylesspalace.tusky.components.accountlist.AccountListFragment$fetchAccounts$2.invokeSuspend(AccountListFragment.kt:333)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:230)
	at android.os.Handler.handleCallback(Handler.java:942)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.app.ActivityThread.main(ActivityThread.java:7872)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@260dcb1, Dispatchers.Main.immediate]
```
2024-05-10 12:33:55 +02:00
..
adapter don't load custom emojis in their full size (#4429) 2024-05-10 12:22:07 +02:00
appstore Refactor notifications to Kotlin & paging (#4026) 2024-05-03 18:27:10 +02:00
components fix crash in AccountListFragment (#4430) 2024-05-10 12:33:55 +02:00
db Fix various lint warnings (#4409) 2024-05-05 08:34:41 +02:00
di Refactor notifications to Kotlin & paging (#4026) 2024-05-03 18:27:10 +02:00
entity make Status.filtered nullable to make some weird api implementations work again (#4426) 2024-05-10 12:21:48 +02:00
fragment Fix various lint warnings (#4409) 2024-05-05 08:34:41 +02:00
interfaces Refactor permissions requests to use ActivityResultContract (#4391) 2024-05-03 21:42:35 +02:00
json Replace Gson library with Moshi (#4309) 2024-04-02 21:01:04 +02:00
network make Status.filtered nullable to make some weird api implementations work again (#4426) 2024-05-10 12:21:48 +02:00
pager upgrade ktlint plugin to 12.0.3 (#4169) 2024-01-04 17:00:55 +01:00
receiver Fix various lint warnings (#4409) 2024-05-05 08:34:41 +02:00
service Fix various lint warnings (#4409) 2024-05-05 08:34:41 +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 fix another crash in ShareShortcutHelper (#4431) 2024-05-10 12:26:03 +02:00
view Fix various lint warnings (#4409) 2024-05-05 08:34:41 +02: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 upgrade ktlint plugin to 12.0.3 (#4169) 2024-01-04 17:00:55 +01:00
BaseActivity.java Refactor permissions requests to use ActivityResultContract (#4391) 2024-05-03 21:42:35 +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 Fix various lint warnings (#4409) 2024-05-05 08:34:41 +02:00
SplashActivity.kt remove legacy notification channel cleanup (#2550) 2022-05-25 20:54:25 +02:00
StatusListActivity.kt Fix various lint warnings (#4409) 2024-05-05 08:34:41 +02:00
TabData.kt Refactor notifications to Kotlin & paging (#4026) 2024-05-03 18:27:10 +02:00
TabPreferenceActivity.kt fix check that ensures only one bookmark tab is added (#4217) 2024-01-28 19:07:17 +01:00
TuskyApplication.kt Refactor notifications to Kotlin & paging (#4026) 2024-05-03 18:27:10 +02:00
ViewMediaActivity.kt Fix various lint warnings (#4409) 2024-05-05 08:34:41 +02:00