mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 21:15:48 +00:00
Potentially fix 'design assumption violated' ISE.
This commit is contained in:
committed by
Cody Henthorne
parent
fd00ed71b5
commit
54656ea14e
@@ -35,6 +35,10 @@ class StoryViewerPagerAdapter(
|
||||
return pages[position].toLong()
|
||||
}
|
||||
|
||||
override fun containsItem(itemId: Long): Boolean {
|
||||
return pages.find { it.toLong() == itemId } != null
|
||||
}
|
||||
|
||||
override fun createFragment(position: Int): Fragment {
|
||||
return StoryViewerPageFragment.create(arguments.copy(recipientId = pages[position]))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user