From 5a90fe491df28aa545df97278222b4120b56b2a7 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Wed, 20 May 2020 23:51:51 +0300 Subject: [PATCH] fix (+) fab visible after profile change (activity recreation) --- .../java/net/ktnx/mobileledger/ui/activity/MainActivity.java | 2 ++ 1 file changed, 2 insertions(+) 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(); -- 2.39.5