commit | e8f50a1400d288e6fd7c20ec7947270e204ee57d | [log] [tgz] |
---|---|---|
author | Kenny Guy <kennyguy@google.com> | Thu Oct 03 13:50:50 2013 +0100 |
committer | Kenny Guy <kennyguy@google.com> | Mon Oct 07 15:54:04 2013 +0100 |
tree | 21d23dec29b14c94c0cd6eb77158e10683524691 | |
parent | 6071c3dcf69af9e0f8525ba2cfa31bd4b8e63d0e [diff] [blame] |
Fix null pointer exception when updating rotation tile. This occurs when switching users on devices that don't have a rotation lock quick settings tile. Change-Id: I738ca15ca754be90cec7eaf3a8eda3e38ed96b33
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java index b6a81b8..531126d 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java
@@ -393,7 +393,7 @@ mInversionObserver.startObserving(); mContrastObserver.startObserving(); mColorSpaceObserver.startObserving(); - onRotationLockChanged(); + refreshRotationLockTile(); onBrightnessLevelChanged(); onInversionChanged(); onContrastChanged();