Skip to content

Commit

Permalink
Fix reaction overlay not showing on first try in RTL mode.
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
fumiakiy authored and cody-signal committed Feb 24, 2021
1 parent b91f043 commit 4dacf4e
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -115,6 +115,7 @@ boolean applyTouchEvent(@NonNull MotionEvent motionEvent) {

private @NonNull ConversationReactionOverlay resolveOverlay() {
ConversationReactionOverlay overlay = overlayStub.get();
overlay.requestFitSystemWindows();

overlay.setListVerticalTranslation(translationY);
overlay.setOnHideListener(onHideListener);
Expand Down

0 comments on commit 4dacf4e

Please sign in to comment.