use of com.android.systemui.shared.system.RemoteAnimationDefinitionCompat in project android_packages_apps_Launcher3 by crdroidandroid.
the class QuickstepTransitionManager method registerRemoteAnimations.
/**
* Registers remote animations used when closing apps to home screen.
*/
public void registerRemoteAnimations() {
if (SEPARATE_RECENTS_ACTIVITY.get()) {
return;
}
if (hasControlRemoteAppTransitionPermission()) {
mWallpaperOpenRunner = createWallpaperOpenRunner(false);
RemoteAnimationDefinitionCompat definition = new RemoteAnimationDefinitionCompat();
definition.addRemoteAnimation(WindowManagerWrapper.TRANSIT_WALLPAPER_OPEN, WindowManagerWrapper.ACTIVITY_TYPE_STANDARD, new RemoteAnimationAdapterCompat(new LauncherAnimationRunner(mHandler, mWallpaperOpenRunner, false), CLOSING_TRANSITION_DURATION_MS, 0));
if (KEYGUARD_ANIMATION.get()) {
mKeyguardGoingAwayRunner = createWallpaperOpenRunner(true);
definition.addRemoteAnimation(WindowManagerWrapper.TRANSIT_KEYGUARD_GOING_AWAY_ON_WALLPAPER, new RemoteAnimationAdapterCompat(new LauncherAnimationRunner(mHandler, mKeyguardGoingAwayRunner, true), CLOSING_TRANSITION_DURATION_MS, 0));
}
new ActivityCompat(mLauncher).registerRemoteAnimations(definition);
}
}
Aggregations