diff options
author | jackmu95 <jacob.mueller.elz@gmail.com> | 2013-02-14 21:39:55 +0100 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2013-02-14 14:27:15 -0800 |
commit | 8702263d0748b7862e0e7acf13a42afb33761ffb (patch) | |
tree | f6a3a70035b12aae587a1373aeb5636a4d304969 /src/com | |
parent | 79924823535f2faae77f186dfed12bc26aa5220b (diff) | |
download | packages_apps_settings-8702263d0748b7862e0e7acf13a42afb33761ffb.zip packages_apps_settings-8702263d0748b7862e0e7acf13a42afb33761ffb.tar.gz packages_apps_settings-8702263d0748b7862e0e7acf13a42afb33761ffb.tar.bz2 |
Settings: Simplyfiy expanded desktop summary
There is no need to have an extra summary string to display the
state of the expanded desktop mode. This commit removes the unneeded
strings and uses the entries as summary.
Change-Id: Ia7e99ec52577c64d786ef5a0117fb33f5af671ab
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/settings/cyanogenmod/PowerMenu.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/com/android/settings/cyanogenmod/PowerMenu.java b/src/com/android/settings/cyanogenmod/PowerMenu.java index 1ad947c..3d74d87 100644 --- a/src/com/android/settings/cyanogenmod/PowerMenu.java +++ b/src/com/android/settings/cyanogenmod/PowerMenu.java @@ -155,20 +155,18 @@ public class PowerMenu extends SettingsPreferenceFragment implements Resources res = getResources(); if (value == 0) { - /* expanded desktop deactivated */ + // Expanded desktop deactivated Settings.System.putInt(getContentResolver(), Settings.System.POWER_MENU_EXPANDED_DESKTOP_ENABLED, 0); mExpandedDesktopPref.setSummary(res.getString(R.string.expanded_desktop_disabled)); } else if (value == 1) { Settings.System.putInt(getContentResolver(), Settings.System.POWER_MENU_EXPANDED_DESKTOP_ENABLED, 1); - String statusBarPresent = res.getString(R.string.expanded_desktop_summary_status_bar); - mExpandedDesktopPref.setSummary(res.getString(R.string.summary_expanded_desktop, statusBarPresent)); + mExpandedDesktopPref.setSummary(res.getString(R.string.expanded_desktop_status_bar)); } else if (value == 2) { Settings.System.putInt(getContentResolver(), Settings.System.POWER_MENU_EXPANDED_DESKTOP_ENABLED, 1); - String statusBarPresent = res.getString(R.string.expanded_desktop_summary_no_status_bar); - mExpandedDesktopPref.setSummary(res.getString(R.string.summary_expanded_desktop, statusBarPresent)); + mExpandedDesktopPref.setSummary(res.getString(R.string.expanded_desktop_no_status_bar)); } } } |