<string name="power_menu_title">Power menu</string>
<string name="power_menu_reboot_title">Reboot menu</string>
<string name="power_menu_screenshot_title">Screenshot</string>
- <string name="power_menu_profiles_title">Profile switcher</string>
<string name="power_menu_airplane_title">Airplane mode</string>
<string name="power_menu_users_title">User switcher</string>
<string name="power_menu_settings_title">Settings shortcut</string>
<string name="power_menu_bug_report_title">Bug report</string>
<string name="power_menu_sound_title">Sound panel</string>
<string name="power_menu_bug_report_disabled">Bug reporting is disabled in development settings</string>
- <string name="power_menu_profiles_disabled">System profiles are disabled</string>
<!-- Buttons - Enable navbar -->
<string name="disable_navkeys_title">Enable on-screen nav bar</string>
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.*;
private CheckBoxPreference mRebootPref;
private CheckBoxPreference mScreenshotPref;
- private CheckBoxPreference mProfilePref;
private CheckBoxPreference mAirplanePref;
private CheckBoxPreference mUsersPref;
private CheckBoxPreference mSettingsPref;
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);