summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/profiles
diff options
context:
space:
mode:
authorFelix Bechstein <f@ub0r.de>2012-12-21 16:40:09 +0100
committerGerrit Code Review <gerrit@review.cyanogenmod.com>2012-12-23 23:40:51 -0800
commit270ffe0d39505aadb6a8eef234173e8ce00322ce (patch)
treef490c40edfe64ffb06f2d1538f114dc22e1dd5a9 /src/com/android/settings/profiles
parentf03967e60de7bf8ee2450e2f130d8d6c509e36e0 (diff)
downloadpackages_apps_settings-270ffe0d39505aadb6a8eef234173e8ce00322ce.zip
packages_apps_settings-270ffe0d39505aadb6a8eef234173e8ce00322ce.tar.gz
packages_apps_settings-270ffe0d39505aadb6a8eef234173e8ce00322ce.tar.bz2
Profile: fix airplane mode
Entering ProfileConfig used to flip back airplane mode settings to "deactivate". Change-Id: Ib8f267f588ca756b51035ae7ca3eb0e2ecf1bfe5
Diffstat (limited to 'src/com/android/settings/profiles')
-rw-r--r--src/com/android/settings/profiles/ProfileAirplaneModePreference.java1
-rw-r--r--src/com/android/settings/profiles/ProfileConfig.java2
2 files changed, 0 insertions, 3 deletions
diff --git a/src/com/android/settings/profiles/ProfileAirplaneModePreference.java b/src/com/android/settings/profiles/ProfileAirplaneModePreference.java
index b6bac20..067e43b 100644
--- a/src/com/android/settings/profiles/ProfileAirplaneModePreference.java
+++ b/src/com/android/settings/profiles/ProfileAirplaneModePreference.java
@@ -165,7 +165,6 @@ public class ProfileAirplaneModePreference extends Preference implements
public void setSummary(Context context) {
int value = mAirplaneModeItem.mSettings.getValue();
- mAirplaneModeItem.mSettings.setValue(currentChoice);
setSummary(value == 1 ? getContext().getString(R.string.connection_state_enabled) : getContext().getString(
R.string.connection_state_disabled));
}
diff --git a/src/com/android/settings/profiles/ProfileConfig.java b/src/com/android/settings/profiles/ProfileConfig.java
index f908fd4..2a0981d 100644
--- a/src/com/android/settings/profiles/ProfileConfig.java
+++ b/src/com/android/settings/profiles/ProfileConfig.java
@@ -414,7 +414,6 @@ public class ProfileConfig extends SettingsPreferenceFragment
}
static class RingModeItem {
- String mLabel;
RingModeSettings mSettings;
ProfileRingModePreference mCheckbox;
@@ -424,7 +423,6 @@ public class ProfileConfig extends SettingsPreferenceFragment
}
static class AirplaneModeItem {
- String mLabel;
AirplaneModeSettings mSettings;
ProfileAirplaneModePreference mCheckbox;