mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-21 18:26:57 +00:00
Prevent crash on pause for Media Preview with no fragments.
This commit is contained in:
@@ -45,7 +45,7 @@ class MediaPreviewV2Adapter(fragment: Fragment) : FragmentStateAdapter(fragment)
|
||||
}
|
||||
|
||||
fun getFragmentTag(position: Int): String? {
|
||||
if (position < 0 || position > itemCount) {
|
||||
if (items.isEmpty() || position < 0 || position > itemCount) {
|
||||
return null
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user