]> git.ktnx.net Git - mobile-ledger.git/commitdiff
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 7c74e54e6b8bcbe1865a6a7d29e2ca3bd289e96a..3f71e0a4707cf0f19dd5883b372795d9b6cacc96 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();