From f67deb8e069427169ecd4e528209be44a0a3f447 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Mon, 22 Jun 2020 13:02:28 -0700 Subject: [PATCH] Fixing rotation watcher not enabled in landscape Bug: 159636793 Change-Id: Ia7e5d90e9d441dfbe9877293957eff1ae7f69877 --- .../src/com/android/quickstep/util/RecentsOrientedState.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/util/RecentsOrientedState.java b/quickstep/src/com/android/quickstep/util/RecentsOrientedState.java index b9953cb81b..b359f0f4e1 100644 --- a/quickstep/src/com/android/quickstep/util/RecentsOrientedState.java +++ b/quickstep/src/com/android/quickstep/util/RecentsOrientedState.java @@ -348,8 +348,10 @@ public final class RecentsOrientedState implements SharedPreferences.OnSharedPre } public boolean isRecentsActivityRotationAllowed() { + // Activity rotation is allowed if the multi-simulated-rotation is not supported + // (fallback recents or tablets) or activity rotation is enabled by various settings. return ((mFlags & MASK_MULTIPLE_ORIENTATION_SUPPORTED_BY_DEVICE) - == MASK_MULTIPLE_ORIENTATION_SUPPORTED_BY_DEVICE) + != MASK_MULTIPLE_ORIENTATION_SUPPORTED_BY_DEVICE) || (mFlags & (FLAG_HOME_ROTATION_ALLOWED_IN_PREFS | FLAG_MULTIWINDOW_ROTATION_ALLOWED | FLAG_HOME_ROTATION_FORCE_ENABLED_FOR_TESTING)) != 0;