Revert "Default fixed_rotation to off"

This reverts commit c0b289c93e.

Reason for revert: fixed in ag/10826395

Bug: 151727009
Change-Id: I0c71d5d47a6825c2445bf8dc9d8a9a1ca23f9e64
(cherry picked from commit 08c4d99237)
This commit is contained in:
Hongwei Wang 2020-03-25 22:07:56 +00:00 committed by Vinit Nayak
parent c7189a6f2d
commit 3b99a6c7d6
2 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ public final class FeatureFlags {
"Always use hardware optimization for folder animations.");
public static final BooleanFlag ENABLE_FIXED_ROTATION_TRANSFORM = getDebugFlag(
FLAG_ENABLE_FIXED_ROTATION_TRANSFORM, false,
FLAG_ENABLE_FIXED_ROTATION_TRANSFORM, true,
"Launch/close apps without rotation animation. Fix Launcher to portrait");
public static void initialize(Context context) {

View File

@ -134,7 +134,7 @@ public class RotationHelper implements OnSharedPreferenceChangeListener {
*/
private void updateForcedRotation(boolean setValueFromPrefs) {
boolean isForcedRotation = mFeatureFlagsPrefs
.getBoolean(FLAG_ENABLE_FIXED_ROTATION_TRANSFORM, false)
.getBoolean(FLAG_ENABLE_FIXED_ROTATION_TRANSFORM, true)
&& !getAllowRotationDefaultValue();
if (mForcedRotation == isForcedRotation) {
return;