mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-25 05:27:42 +00:00
Drop state update for unattached fragment.
This commit is contained in:
committed by
Greyson Parrelli
parent
201f314cfb
commit
855d74bbbf
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user