DO NOT MERGE Fix null pointer exception when updating rotation tile. (Bug 11111473)

This occurs when switching users on devices that
don't have a rotation lock quick settings tile.

Change-Id: I738ca15ca754be90cec7eaf3a8eda3e38ed96b33
(cherry picked from commit e8f50a1400)
This commit is contained in:
Winson Chung
2013-10-17 18:26:00 -07:00
parent b38ad76a82
commit 0e9ce34d1c

View File

@@ -280,7 +280,7 @@ class QuickSettingsModel implements BluetoothStateChangeCallback,
mUserTracker = new CurrentUserTracker(mContext) {
public void onUserSwitched(int newUserId) {
mBrightnessObserver.startObserving();
onRotationLockChanged();
refreshRotationLockTile();
onBrightnessLevelChanged();
onNextAlarmChanged();
onBugreportChanged();