Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 916a7f68 authored by Vinit Nayak's avatar Vinit Nayak Committed by android-build-team Robot
Browse files

Default fixed_rotation to off

Bug: 151727009
Test: N/A
Change-Id: I83f9f58acb1718ee4fc19530a3e8b25badefda0e
(cherry picked from commit c0b289c9)
parent bf0c9e2e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -156,7 +156,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, true,
            FLAG_ENABLE_FIXED_ROTATION_TRANSFORM, false,
            "Launch/close apps without rotation animation. Fix Launcher to portrait");

    public static void initialize(Context context) {
+1 −1
Original line number Diff line number Diff line
@@ -134,7 +134,7 @@ public class RotationHelper implements OnSharedPreferenceChangeListener {
     */
    private void updateForcedRotation(boolean setValueFromPrefs) {
        boolean isForcedRotation = mFeatureFlagsPrefs
                .getBoolean(FLAG_ENABLE_FIXED_ROTATION_TRANSFORM, true)
                .getBoolean(FLAG_ENABLE_FIXED_ROTATION_TRANSFORM, false)
                && !getAllowRotationDefaultValue();
        if (mForcedRotation == isForcedRotation) {
            return;