diff options
author | cyBerta <cyberta@riseup.net> | 2019-10-31 20:46:58 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2019-10-31 20:46:58 +0100 |
commit | 4924a3e28807c362597a581ad2b6a810809099a7 (patch) | |
tree | a68cce619aba5cb49c37a4a2455694db6b1dbffe /app/src | |
parent | c5733656b141793dded08d38c2f79e8b373f9092 (diff) |
rename save battery alert, it's not experimental anymore
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/drawer/NavigationDrawerFragment.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/drawer/NavigationDrawerFragment.java b/app/src/main/java/se/leap/bitmaskclient/drawer/NavigationDrawerFragment.java index 25bd617a..6335f6ed 100644 --- a/app/src/main/java/se/leap/bitmaskclient/drawer/NavigationDrawerFragment.java +++ b/app/src/main/java/se/leap/bitmaskclient/drawer/NavigationDrawerFragment.java @@ -117,7 +117,7 @@ public class NavigationDrawerFragment extends Fragment implements SharedPreferen private SharedPreferences preferences; - private final static String KEY_SHOW_ENABLE_EXPERIMENTAL_FEATURE = "KEY_SHOW_ENABLE_EXPERIMENTAL_FEATURE"; + private final static String KEY_SHOW_SAVE_BATTERY_ALERT = "KEY_SHOW_SAVE_BATTERY_ALERT"; private boolean showEnableExperimentalFeature = false; AlertDialog alertDialog; @@ -300,7 +300,7 @@ public class NavigationDrawerFragment extends Fragment implements SharedPreferen return; } if (isChecked) { - showExperimentalFeatureAlert(); + showSaveBatteryAlert(); } else { saveBattery(getContext(), false); } @@ -432,17 +432,17 @@ public class NavigationDrawerFragment extends Fragment implements SharedPreferen public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); if (showEnableExperimentalFeature) { - outState.putBoolean(KEY_SHOW_ENABLE_EXPERIMENTAL_FEATURE, true); + outState.putBoolean(KEY_SHOW_SAVE_BATTERY_ALERT, true); } } private void restoreFromSavedInstance(Bundle savedInstanceState) { - if (savedInstanceState != null && savedInstanceState.containsKey(KEY_SHOW_ENABLE_EXPERIMENTAL_FEATURE)) { - showExperimentalFeatureAlert(); + if (savedInstanceState != null && savedInstanceState.containsKey(KEY_SHOW_SAVE_BATTERY_ALERT)) { + showSaveBatteryAlert(); } } - private void showExperimentalFeatureAlert() { + private void showSaveBatteryAlert() { Activity activity = getActivity(); if (activity == null) { return; |