kopia lustrzana https://github.com/ryukoposting/Signal-Android
Drop state update for unattached fragment.
rodzic
201f314cfb
commit
855d74bbbf
|
@ -352,6 +352,7 @@ class StoryViewerPageFragment :
|
||||||
|
|
||||||
if (context == null) {
|
if (context == null) {
|
||||||
Log.d(TAG, "Subscriber called while fragment is detached. Ignoring state update.")
|
Log.d(TAG, "Subscriber called while fragment is detached. Ignoring state update.")
|
||||||
|
return@subscribe
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state.posts.isNotEmpty() && state.selectedPostIndex in state.posts.indices) {
|
if (state.posts.isNotEmpty() && state.selectedPostIndex in state.posts.indices) {
|
||||||
|
|
Ładowanie…
Reference in New Issue