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
This commit is contained in:
Kenny Guy
2013-10-03 13:50:50 +01:00
parent 6071c3dcf6
commit e8f50a1400

View File

@@ -393,7 +393,7 @@ class QuickSettingsModel implements BluetoothStateChangeCallback,
mInversionObserver.startObserving();
mContrastObserver.startObserving();
mColorSpaceObserver.startObserving();
onRotationLockChanged();
refreshRotationLockTile();
onBrightnessLevelChanged();
onInversionChanged();
onContrastChanged();