Skip onSharedPreferenceChanged if mIgnoreAutoRotateSettings is true in RotationHelper am: 19d43e0511 am: 8254e21716 am: 470f189e71
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18349767 Change-Id: I3e73bdadbbfb2c5378355ca92897ba6384b74aae Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -109,7 +109,7 @@ public class RotationHelper implements OnSharedPreferenceChangeListener,
|
||||
|
||||
@Override
|
||||
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String s) {
|
||||
if (mDestroyed) return;
|
||||
if (mDestroyed || mIgnoreAutoRotateSettings) return;
|
||||
boolean wasRotationEnabled = mHomeRotationEnabled;
|
||||
mHomeRotationEnabled = mSharedPrefs.getBoolean(ALLOW_ROTATION_PREFERENCE_KEY,
|
||||
getAllowRotationDefaultValue(mActivity.getDeviceProfile()));
|
||||
|
||||
Reference in New Issue
Block a user