From 4dacf4e342e81f77fa144cfbd111f3c6a031d590 Mon Sep 17 00:00:00 2001 From: Fumiaki Yoshimatsu Date: Thu, 18 Feb 2021 14:49:06 -0500 Subject: [PATCH] Fix reaction overlay not showing on first try in RTL mode. The view needs to request a call to `fitsSystemWindows`; otherwise it cannot determine where to layout itself within the parent that uses fitsSystemWindows method to determine the boundary of it. This fixes the issue reported in [the beta 5.3 forum](https://community.signalusers.org/t/beta-feedback-for-the-upcoming-android-5-3-release/25088/315). --- .../securesms/conversation/ConversationReactionDelegate.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/ConversationReactionDelegate.java b/app/src/main/java/org/thoughtcrime/securesms/conversation/ConversationReactionDelegate.java index 3465859dcf..01532905fb 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/ConversationReactionDelegate.java +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/ConversationReactionDelegate.java @@ -115,6 +115,7 @@ final class ConversationReactionDelegate { private @NonNull ConversationReactionOverlay resolveOverlay() { ConversationReactionOverlay overlay = overlayStub.get(); + overlay.requestFitSystemWindows(); overlay.setListVerticalTranslation(translationY); overlay.setOnHideListener(onHideListener);