From: Damyan Ivanov Date: Wed, 20 May 2020 20:51:51 +0000 (+0300) Subject: fix (+) fab visible after profile change (activity recreation) X-Git-Tag: v0.14.0~63 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=5a90fe491df28aa545df97278222b4120b56b2a7;p=mobile-ledger.git fix (+) fab visible after profile change (activity recreation) --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java index 7c74e54e..3f71e0a4 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java @@ -647,6 +647,8 @@ public class MainActivity extends ProfileThemedActivity { public void fabShouldShow() { if ((profile != null) && profile.isPostingPermitted() && !drawer.isOpen()) fab.show(); + else + fabHide(); } public void fabHide() { fab.hide();