Remove unnecessary invocation of updateRotation

mMultiuserReceiver#onReceive will call mSettingsObserver.onChange.
But both mSettingsObserver#updateSettings and
mDefaultDisplayRotation.onUserSwitch() in
mMultiuserReceiver#onReceive already check if there is something
needs to update rotation. So it is unnecessary to call
updateRotation again in mSettingsObserver.onChange.

Bug: 197745994
Test: Switch user
Change-Id: Ic201f319739e910bfb7bf4c9c55a9d687b35cb78
This commit is contained in:
Riddle Hsu
2023-06-06 14:05:22 +00:00
parent a45422d036
commit a1c3f60121

View File

@@ -824,7 +824,6 @@ public class PhoneWindowManager implements WindowManagerPolicy {
@Override public void onChange(boolean selfChange) {
updateSettings();
updateRotation(false);
}
}