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

Commit 161f2806 authored by Johannes Gallmann's avatar Johannes Gallmann
Browse files

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
parent d4d9c4fe
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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
+2 −2
Original line number Diff line number Diff line
@@ -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());
    }