diff options
Diffstat (limited to 'src/com/android/settings')
-rw-r--r-- | src/com/android/settings/cyanogenmod/PowerMenuActions.java | 14 |
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); |