Merge "Change predictive back system animations flag to runtime flag" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
d28730e07a
@@ -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.content.Context;
|
||||
import android.provider.Settings;
|
||||
@@ -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