OSDN Git Service

Fixing occasional jump when launching certain apps from Recents.
authorWinson Chung <winsonc@google.com>
Wed, 19 Jul 2017 21:31:32 +0000 (14:31 -0700)
committerWinson Chung <winsonc@google.com>
Thu, 20 Jul 2017 23:40:25 +0000 (16:40 -0700)
commit7b088c3e2820809437ad40e88a457c220943692e
treeaf1e119149b4edfea1bed3ac7e462d7c42efa9a3
parent37a9991be98d7e5c9ab4ba102c4d29845fa94152
Fixing occasional jump when launching certain apps from Recents.

- Removing code that cleared the pending options for an activity when it
  is fetched by the app.
- Only handle the first window-animation-started callback from the system
  when transitioning out of Recents.
- Add logic in Recents to disable toggling Recents while an activity
  transition has been requested (ie. activity started) and the transition
  actually starting. This prevents some cases where interleaving of the
  transition updates can occur while the app takes a long time to draw
  when it is resumed which could cause animation jumps and weirdness.

Bug: 37277853
Test: Launch between apps quickly, especially those with camera.

Change-Id: I7ff8a83539334a39b0ae049d267d1ab14a38e2f6
packages/SystemUI/src/com/android/systemui/recents/IRecentsSystemUserCallbacks.aidl
packages/SystemUI/src/com/android/systemui/recents/Recents.java
packages/SystemUI/src/com/android/systemui/recents/RecentsImpl.java
packages/SystemUI/src/com/android/systemui/recents/RecentsSystemUser.java
packages/SystemUI/src/com/android/systemui/recents/events/component/SetWaitingForTransitionStartEvent.java [new file with mode: 0644]
packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
services/core/java/com/android/server/am/ActivityManagerService.java