mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Fix IndexOutOfBoundsException when rapidly tapping through stories.
This commit is contained in:
committed by
Greyson Parrelli
parent
83d1ab2eb5
commit
7315c991d5
@@ -130,7 +130,8 @@ object StoryContextMenu {
|
||||
onInfo: (StoryPost) -> Unit,
|
||||
onDismiss: () -> Unit
|
||||
) {
|
||||
val selectedStory: StoryPost = storyViewerPageState.posts[storyViewerPageState.selectedPostIndex]
|
||||
val selectedStory: StoryPost = storyViewerPageState.posts.getOrNull(storyViewerPageState.selectedPostIndex) ?: return
|
||||
|
||||
show(
|
||||
context = context,
|
||||
anchorView = anchorView,
|
||||
|
||||
Reference in New Issue
Block a user