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

Commit 8ca3d852 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Default fixed_rotation to off" into ub-launcher3-master

parents 2d944644 28cb71ba
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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, 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;