kopia lustrzana https://github.com/ryukoposting/Signal-Android
Prevent crash on pause for Media Preview with no fragments.
rodzic
9846517075
commit
3f160f256a
|
@ -45,7 +45,7 @@ class MediaPreviewV2Adapter(fragment: Fragment) : FragmentStateAdapter(fragment)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getFragmentTag(position: Int): String? {
|
fun getFragmentTag(position: Int): String? {
|
||||||
if (position < 0 || position > itemCount) {
|
if (items.isEmpty() || position < 0 || position > itemCount) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue