Change predictive back system animations flag to runtime flag
Bug: 320510464 Flag: ACONFIG com.android.systemui.predictive_back_system_anims DISABLED Test: presubmit Change-Id: I591133ce8d4c85c7c056b66f1c21ce8d0c40960e
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
package com.android.settings.development;
|
||||
|
||||
import static com.android.window.flags.Flags.predictiveBackSystemAnimations;
|
||||
import static com.android.window.flags.Flags.predictiveBackSystemAnims;
|
||||
|
||||
import android.annotation.Nullable;
|
||||
import android.content.Context;
|
||||
@@ -57,7 +57,7 @@ public class BackAnimationPreferenceController extends DeveloperOptionsPreferenc
|
||||
|
||||
@Override
|
||||
public boolean isAvailable() {
|
||||
return !predictiveBackSystemAnimations();
|
||||
return !predictiveBackSystemAnims();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -91,13 +91,13 @@ public class BackAnimationPreferenceControllerTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@RequiresFlagsEnabled(Flags.FLAG_PREDICTIVE_BACK_SYSTEM_ANIMATIONS)
|
||||
@RequiresFlagsEnabled(Flags.FLAG_PREDICTIVE_BACK_SYSTEM_ANIMS)
|
||||
public void controllerNotAvailable_whenAconfigFlagEnabled() {
|
||||
assertFalse(mController.isAvailable());
|
||||
}
|
||||
|
||||
@Test
|
||||
@RequiresFlagsDisabled(Flags.FLAG_PREDICTIVE_BACK_SYSTEM_ANIMATIONS)
|
||||
@RequiresFlagsDisabled(Flags.FLAG_PREDICTIVE_BACK_SYSTEM_ANIMS)
|
||||
public void controllerAvailable_whenAconfigFlagDisabled() {
|
||||
assertTrue(mController.isAvailable());
|
||||
}
|
||||
|
Reference in New Issue
Block a user