From 7e23b635658e1871ef531fea1f86371db920c78b Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Fri, 11 Jan 2019 19:51:57 +0000 Subject: [PATCH] move profile name from the sub-title to the title it needs to be seen, and the current view is obvious and needs not be so explicit --- .../net/ktnx/mobileledger/ui/activity/MainActivity.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 a22d9891..1218d0cf 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 @@ -95,8 +95,8 @@ public class MainActivity extends AppCompatActivity { Data.profile.addObserver((o, arg) -> { MobileLedgerProfile profile = Data.profile.get(); runOnUiThread(() -> { - if (profile == null) toolbar.setSubtitle(""); - else toolbar.setSubtitle(profile.getName()); + if (profile == null) setTitle(R.string.app_name); + else setTitle(profile.getName()); }); }); @@ -240,8 +240,6 @@ public class MainActivity extends AppCompatActivity { item.setBackgroundColor(getResources().getColor(R.color.table_row_even_bg)); } - setTitle(item.getText()); - @ColorInt int transparent = getResources().getColor(android.R.color.transparent); LinearLayout actions = drawer.findViewById(R.id.nav_actions); -- 2.39.2