summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/cyanogenmod
diff options
context:
space:
mode:
authorMichael Bestas <mikeioannina@cyanogenmod.org>2016-02-05 00:47:05 +0200
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-02-08 05:56:19 -0800
commit0dc6e704529771082283e7242ed16c829bc0fec5 (patch)
treeaf5365ae5a63a71ce3f89ecc5e3c75e47f9c219d /src/com/android/settings/cyanogenmod
parenta45aa5e9be4c90179a9c4dcc6ad7f61418391704 (diff)
downloadpackages_apps_Settings-0dc6e704529771082283e7242ed16c829bc0fec5.zip
packages_apps_Settings-0dc6e704529771082283e7242ed16c829bc0fec5.tar.gz
packages_apps_Settings-0dc6e704529771082283e7242ed16c829bc0fec5.tar.bz2
Remove leftover profiles entry from power menu
* No longer available Change-Id: Ifac7e1181dc53af5788f54444ef75a345a888fa2
Diffstat (limited to 'src/com/android/settings/cyanogenmod')
-rw-r--r--src/com/android/settings/cyanogenmod/PowerMenuActions.java14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/com/android/settings/cyanogenmod/PowerMenuActions.java b/src/com/android/settings/cyanogenmod/PowerMenuActions.java
index 932d4e5..6a02a97 100644
--- a/src/com/android/settings/cyanogenmod/PowerMenuActions.java
+++ b/src/com/android/settings/cyanogenmod/PowerMenuActions.java
@@ -35,7 +35,9 @@ import com.android.internal.logging.MetricsLogger;
import com.android.settings.R;
import com.android.settings.SettingsPreferenceFragment;
import com.android.internal.util.cm.PowerMenuConstants;
+
import cyanogenmod.providers.CMSettings;
+
import org.cyanogenmod.internal.logging.CMMetricsLogger;
import static com.android.internal.util.cm.PowerMenuConstants.*;
@@ -49,7 +51,6 @@ public class PowerMenuActions extends SettingsPreferenceFragment {
private CheckBoxPreference mRebootPref;
private CheckBoxPreference mScreenshotPref;
- private CheckBoxPreference mProfilePref;
private CheckBoxPreference mAirplanePref;
private CheckBoxPreference mUsersPref;
private CheckBoxPreference mSettingsPref;
@@ -252,17 +253,6 @@ public class PowerMenuActions extends SettingsPreferenceFragment {
private void updatePreferences() {
boolean bugreport = Settings.Secure.getInt(getContentResolver(),
Settings.Secure.BUGREPORT_IN_POWER_MENU, 0) != 0;
- boolean profiles = CMSettings.System.getInt(getContentResolver(),
- CMSettings.System.SYSTEM_PROFILES_ENABLED, 1) != 0;
-
- if (mProfilePref != null) {
- mProfilePref.setEnabled(profiles);
- if (profiles) {
- mProfilePref.setSummary(null);
- } else {
- mProfilePref.setSummary(R.string.power_menu_profiles_disabled);
- }
- }
if (mBugReportPref != null) {
mBugReportPref.setEnabled(bugreport);