mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 00:29:11 +01:00
Fix crash when rotating device in emoji reaction picker.
Adds null check for selectedConversationModel in hideInternal() to prevent NPE when hide() is called after the overlay has already been hidden during configuration changes. Fixes #14491
This commit is contained in:
committed by
jeffrey-signal
parent
8cd0381df5
commit
eb826b2786
@@ -407,6 +407,10 @@ public final class ConversationReactionOverlay extends FrameLayout {
|
||||
}
|
||||
|
||||
private void hideInternal(@Nullable OnHideListener onHideListener) {
|
||||
if (overlayState == OverlayState.HIDDEN || selectedConversationModel == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
overlayState = OverlayState.HIDDEN;
|
||||
|
||||
AnimatorSet animatorSet = newHideAnimatorSet();
|
||||
|
||||
Reference in New Issue
Block a user