Apply settings page transition
This change applies Shared X-Axis transition across settings pages. For injected settings, the injected apps have to also apply the same transition to take effect. Fixes: 177479937 Test: robotests and navigate through settings pages Change-Id: I6241860766f5969428faf9a5b3730a7614fdcd92
This commit is contained in:
@@ -47,6 +47,7 @@ public class ShadowUtils {
|
||||
private static boolean sIsVoiceCapable;
|
||||
private static ArraySet<String> sResultLinks = new ArraySet<>();
|
||||
private static boolean sIsBatteryPresent;
|
||||
private static boolean sIsPageTransitionEnabled;
|
||||
|
||||
@Implementation
|
||||
protected static int enforceSameOwner(Context context, int userId) {
|
||||
@@ -69,6 +70,7 @@ public class ShadowUtils {
|
||||
sIsVoiceCapable = false;
|
||||
sResultLinks = new ArraySet<>();
|
||||
sIsBatteryPresent = true;
|
||||
sIsPageTransitionEnabled = true;
|
||||
}
|
||||
|
||||
public static void setIsDemoUser(boolean isDemoUser) {
|
||||
@@ -166,4 +168,13 @@ public class ShadowUtils {
|
||||
public static void setIsBatteryPresent(boolean isBatteryPresent) {
|
||||
sIsBatteryPresent = isBatteryPresent;
|
||||
}
|
||||
|
||||
@Implementation
|
||||
protected static boolean isPageTransitionEnabled(Context context) {
|
||||
return sIsPageTransitionEnabled;
|
||||
}
|
||||
|
||||
public static void setIsPageTransitionEnabled(boolean isPageTransitionEnabled) {
|
||||
sIsPageTransitionEnabled = isPageTransitionEnabled;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user