]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java
fix the 'Posting committed' switch in the profile editor
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / ui / activity / MainActivity.java
index 83b608bff321561f3b0caac9ce191fead44beeff..fb8a732748a5a4bfc63246df8aa5dd2eb520386e 100644 (file)
@@ -97,8 +97,14 @@ public class MainActivity extends AppCompatActivity {
                 if (profile == null) setTitle(R.string.app_name);
                 else setTitle(profile.getName());
                 updateLastUpdateTextFromDB();
-                if (profile.isPostingPermitted()) fab.show();
-                else fab.hide();
+                if (profile.isPostingPermitted()) {
+                    toolbar.setSubtitle(null);
+                    fab.show();
+                }
+                else {
+                    toolbar.setSubtitle(R.string.profile_subitlte_read_only);
+                    fab.hide();
+                }
             });
         });