diff options
author | Christian Schneppe <christian@pix-art.de> | 2019-04-02 21:44:09 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2019-04-02 21:44:09 +0200 |
commit | 19ae861c56c745dc8e78c3085b9cc33e1e100baf (patch) | |
tree | 35d7d932bb2d75eebed70fe7212da16fa527e27e /src/main/java/de/pixart/messenger | |
parent | 222c6802f50c45b5f66dde3394c8ae4ac1c3f08f (diff) |
small improvement to auto hide fab in MediaViewerActivity
Diffstat (limited to 'src/main/java/de/pixart/messenger')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/MediaViewerActivity.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/MediaViewerActivity.java b/src/main/java/de/pixart/messenger/ui/MediaViewerActivity.java index f9e5b1c2f..69aeeb55a 100644 --- a/src/main/java/de/pixart/messenger/ui/MediaViewerActivity.java +++ b/src/main/java/de/pixart/messenger/ui/MediaViewerActivity.java @@ -382,7 +382,11 @@ public class MediaViewerActivity extends XmppActivity { private void hideFab() { new Handler().postDelayed(() -> { - binding.speedDial.hide(); + if (binding.speedDial.isOpen()) { + hideFab(); + } else { + binding.speedDial.hide(); + } }, 3000); } |