Merge "Add predictive back aconfig flag" into main

This commit is contained in:
Johannes Gallmann
2023-12-11 13:19:25 +00:00
committed by Android (Google) Code Review
2 changed files with 29 additions and 0 deletions

View File

@@ -16,6 +16,8 @@
package com.android.settings.development;
import static com.android.window.flags.Flags.predictiveBackSystemAnimations;
import android.content.Context;
import android.provider.Settings;
@@ -55,6 +57,11 @@ public class BackAnimationPreferenceController extends DeveloperOptionsPreferenc
mFragment = fragment;
}
@Override
public boolean isAvailable() {
return !predictiveBackSystemAnimations();
}
@Override
public String getPreferenceKey() {
return BACK_NAVIGATION_ANIMATION_KEY;