Skip to content

Commit

Permalink
Fix issue where rail wasn't showing in some situations.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal committed Jun 3, 2020
1 parent 40231ea commit 66f021d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,9 @@ public void onBackPressed() {
MediaSendFragment sendFragment = (MediaSendFragment) getSupportFragmentManager().findFragmentByTag(TAG_SEND);

if (sendFragment == null || !sendFragment.isVisible() || !hud.isInputOpen()) {
if (captionAndRail != null) {
captionAndRail.setVisibility(View.VISIBLE);
}
super.onBackPressed();
} else {
hud.hideCurrentInput(composeText);
Expand Down

0 comments on commit 66f021d

Please sign in to comment.