diff options
author | Jason Monk <jmonk@google.com> | 2015-07-13 16:22:35 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-07-13 16:22:45 +0000 |
commit | 28a07ff0e1bf6029653ceaaa7bbfae0080ee05d7 (patch) | |
tree | a63fba4917c4e51b0b10dcaa39c18a12ac4889dc | |
parent | 4502bfb8fd5ddb15bf0cc9bfc631eda269621f29 (diff) | |
parent | 33b60bb45ff45540c4bd4f5d74f3ca5489f02088 (diff) | |
download | frameworks_base-28a07ff0e1bf6029653ceaaa7bbfae0080ee05d7.zip frameworks_base-28a07ff0e1bf6029653ceaaa7bbfae0080ee05d7.tar.gz frameworks_base-28a07ff0e1bf6029653ceaaa7bbfae0080ee05d7.tar.bz2 |
Merge "Fix demo mode issues" into mnc-dev
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkControllerImpl.java | 2 | ||||
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/tuner/DemoModeFragment.java | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkControllerImpl.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkControllerImpl.java index 24e3c78..81f2d53 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkControllerImpl.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkControllerImpl.java @@ -661,8 +661,8 @@ public class NetworkControllerImpl extends BroadcastReceiver for (int i = start /* get out of normal index range */; i < start + num; i++) { subs.add(addSignalController(i, i)); } + mCallbackHandler.setSubs(subs); } - mCallbackHandler.setSubs(subs); } String nosim = args.getString("nosim"); if (nosim != null) { diff --git a/packages/SystemUI/src/com/android/systemui/tuner/DemoModeFragment.java b/packages/SystemUI/src/com/android/systemui/tuner/DemoModeFragment.java index ca6aaeb..3f5ca58 100644 --- a/packages/SystemUI/src/com/android/systemui/tuner/DemoModeFragment.java +++ b/packages/SystemUI/src/com/android/systemui/tuner/DemoModeFragment.java @@ -103,6 +103,11 @@ public class DemoModeFragment extends PreferenceFragment implements OnPreference @Override public boolean onPreferenceChange(Preference preference, Object newValue) { if (preference == mEnabledSwitch) { + if (newValue != Boolean.TRUE) { + // Make sure we aren't in demo mode when disabling it. + mOnSwitch.setChecked(false); + stopDemoMode(); + } setGlobal(DEMO_MODE_ALLOWED, newValue == Boolean.TRUE ? 1 : 0); } else if (preference == mOnSwitch) { if (newValue == Boolean.TRUE) { @@ -123,7 +128,7 @@ public class DemoModeFragment extends PreferenceFragment implements OnPreference getContext().sendBroadcast(intent); intent.putExtra(DemoMode.EXTRA_COMMAND, DemoMode.COMMAND_CLOCK); - intent.putExtra("hhmm", "0520"); + intent.putExtra("hhmm", "0600"); getContext().sendBroadcast(intent); intent.putExtra(DemoMode.EXTRA_COMMAND, DemoMode.COMMAND_NETWORK); |