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

This commit is contained in:
TreeHugger Robot 2020-03-27 04:57:08 +00:00 committed by Android (Google) Code Review
commit 88a9946b54
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;