X-Git-Url: https://git.ktnx.net/?a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fnet%2Fktnx%2Fmobileledger%2Fui%2Factivity%2FMainActivity.java;h=876f8da8c4e60f8f411f4eeba803ba3b5fdbac03;hb=1738aee062f23cc9a69ed11cade1cb048f083def;hp=3fd2a7c7f1740ea3c552c776273844ad61fe7d09;hpb=ee2c4c516e65741094e37098362a3130988579d9;p=mobile-ledger.git 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 3fd2a7c7..876f8da8 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 @@ -399,7 +399,7 @@ public class MainActivity extends ProfileThemedActivity { mProfileListAdapter.notifyDataSetChanged(); - int newProfileTheme = haveProfile ? profile.getThemeId() : -1; + int newProfileTheme = haveProfile ? profile.getThemeHue() : -1; if (newProfileTheme != Colors.profileThemeId) { debug("profiles", String.format(Locale.ENGLISH, "profile theme %d → %d", Colors.profileThemeId, @@ -458,7 +458,7 @@ public class MainActivity extends ProfileThemedActivity { Bundle bundle = new Bundle(); onSaveInstanceState(bundle); - storeThemeIdInPrefs(profile.getThemeId()); + storeThemeIdInPrefs(profile.getThemeHue()); // restart activity to reflect theme change finish(); @@ -505,11 +505,6 @@ public class MainActivity extends ProfileThemedActivity { startActivity(intent); overridePendingTransition(R.anim.slide_in_up, R.anim.dummy); } - public void navSettingsClicked(View view) { - Intent intent = new Intent(this, SettingsActivity.class); - startActivity(intent); - drawer.closeDrawers(); - } public void markDrawerItemCurrent(int id) { TextView item = drawer.findViewById(id); item.setBackgroundColor(Colors.tableRowDarkBG);