fix (+) fab visible after profile change (activity recreation)
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 20 May 2020 20:51:51 +0000 (23:51 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 20 May 2020 20:51:51 +0000 (23:51 +0300)
app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java

index 7c74e54..3f71e0a 100644 (file)
@@ -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();