diff options
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/window/ITaskFragmentOrganizerController.aidl | 6 | ||||
| -rw-r--r-- | core/java/android/window/TaskFragmentOrganizer.java | 13 |
2 files changed, 11 insertions, 8 deletions
diff --git a/core/java/android/window/ITaskFragmentOrganizerController.aidl b/core/java/android/window/ITaskFragmentOrganizerController.aidl index 4399207fcc27..8407d10bc3ea 100644 --- a/core/java/android/window/ITaskFragmentOrganizerController.aidl +++ b/core/java/android/window/ITaskFragmentOrganizerController.aidl @@ -35,15 +35,15 @@ interface ITaskFragmentOrganizerController { /** * Registers remote animations per transition type for the organizer. It will override the * animations if the transition only contains windows that belong to the organized - * TaskFragments. + * TaskFragments in the given Task. */ - void registerRemoteAnimations(in ITaskFragmentOrganizer organizer, + void registerRemoteAnimations(in ITaskFragmentOrganizer organizer, int taskId, in RemoteAnimationDefinition definition); /** * Unregisters remote animations per transition type for the organizer. */ - void unregisterRemoteAnimations(in ITaskFragmentOrganizer organizer); + void unregisterRemoteAnimations(in ITaskFragmentOrganizer organizer, int taskId); /** * Checks if an activity organized by a {@link android.window.TaskFragmentOrganizer} and diff --git a/core/java/android/window/TaskFragmentOrganizer.java b/core/java/android/window/TaskFragmentOrganizer.java index 9c2fde04e4d2..1d1deacf0eb3 100644 --- a/core/java/android/window/TaskFragmentOrganizer.java +++ b/core/java/android/window/TaskFragmentOrganizer.java @@ -94,13 +94,16 @@ public class TaskFragmentOrganizer extends WindowOrganizer { /** * Registers remote animations per transition type for the organizer. It will override the * animations if the transition only contains windows that belong to the organized - * TaskFragments. + * TaskFragments in the given Task. + * + * @param taskId overrides if the transition only contains windows belonging to this Task. * @hide */ @CallSuper - public void registerRemoteAnimations(@NonNull RemoteAnimationDefinition definition) { + public void registerRemoteAnimations(int taskId, + @NonNull RemoteAnimationDefinition definition) { try { - getController().registerRemoteAnimations(mInterface, definition); + getController().registerRemoteAnimations(mInterface, taskId, definition); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } @@ -111,9 +114,9 @@ public class TaskFragmentOrganizer extends WindowOrganizer { * @hide */ @CallSuper - public void unregisterRemoteAnimations() { + public void unregisterRemoteAnimations(int taskId) { try { - getController().unregisterRemoteAnimations(mInterface); + getController().unregisterRemoteAnimations(mInterface, taskId); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } |
