From ee27b9de8f2ab17d50b90dd8c13546aebb4e9fc1 Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Fri, 9 May 2014 13:36:20 -0400 Subject: Settings user restriction changes: wireless & networks changes. Bug: 14081992 Change-Id: I32b0f06da7e7ff9bd8303ce26be2584e6cddbedc --- src/com/android/settings/DevelopmentSettings.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/com/android/settings/DevelopmentSettings.java') diff --git a/src/com/android/settings/DevelopmentSettings.java b/src/com/android/settings/DevelopmentSettings.java index 94d8a3682..52c433851 100644 --- a/src/com/android/settings/DevelopmentSettings.java +++ b/src/com/android/settings/DevelopmentSettings.java @@ -465,6 +465,9 @@ public class DevelopmentSettings extends SettingsPreferenceFragment public void onPause() { super.onPause(); + if (mUnavailable) { + return; + } mSwitchBar.removeOnSwitchChangeListener(this); mSwitchBar.hide(); } -- cgit v1.2.3