9/ Clean up swipe shared state

- Add TaskAnimationManager which keeps track of the animation state whose
  lifecycle can be longer than the gesture.  Move some of the logic related
  to cleaning up old animations into this class (called when the state is
  shared across gestures).
- Instead of calling into the shared state directly via UIFactory, add
  callback to cleanup the animation and shared state from Launcher

Bug: 141886704

Change-Id: Ib6140b37162f7460a20fa1046cfd4f4068e4a1c6
Signed-off-by: Winson Chung <winsonc@google.com>
This commit is contained in:
Winson Chung
2019-10-04 15:33:18 -07:00
parent 9196cb11a2
commit c9bf6d45ac
18 changed files with 338 additions and 236 deletions

View File

@@ -96,9 +96,6 @@ public class UiFactory {
public static void resetPendingActivityResults(Launcher launcher, int requestCode) { }
/** No-op. */
public static void clearSwipeSharedState(Launcher launcher, boolean finishAnimation) { }
public static Person[] getPersons(ShortcutInfo si) {
return Utilities.EMPTY_PERSON_ARRAY;
}