From 270ffe0d39505aadb6a8eef234173e8ce00322ce Mon Sep 17 00:00:00 2001 From: Felix Bechstein Date: Fri, 21 Dec 2012 16:40:09 +0100 Subject: Profile: fix airplane mode Entering ProfileConfig used to flip back airplane mode settings to "deactivate". Change-Id: Ib8f267f588ca756b51035ae7ca3eb0e2ecf1bfe5 --- src/com/android/settings/profiles/ProfileAirplaneModePreference.java | 1 - src/com/android/settings/profiles/ProfileConfig.java | 2 -- 2 files changed, 3 deletions(-) (limited to 'src/com/android') 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; -- cgit v1.1