Drop state update for unattached fragment.

fork-5.53.8
Alex Hart 2022-08-01 10:08:04 -03:00 zatwierdzone przez Greyson Parrelli
rodzic 201f314cfb
commit 855d74bbbf
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -352,6 +352,7 @@ class StoryViewerPageFragment :
if (context == null) {
Log.d(TAG, "Subscriber called while fragment is detached. Ignoring state update.")
return@subscribe
}
if (state.posts.isNotEmpty() && state.selectedPostIndex in state.posts.indices) {