OSDN Git Service

Workaround for input ANR, always finish PiP menu activity.
authorWinson Chung <winsonc@google.com>
Wed, 5 Apr 2017 18:49:38 +0000 (11:49 -0700)
committerWinson Chung <winsonc@google.com>
Wed, 5 Apr 2017 20:44:53 +0000 (13:44 -0700)
commit87e5d55e98857bd43984c2395660d88ae20efcfc
treea885be89fc35cf54d16fb816116b621647dee3fe
parent1cf2c974591cedee33b0849a3bbd05d71d7a14ad
Workaround for input ANR, always finish PiP menu activity.

- Always finish the PiP menu activity when the interaction is complete
  (either the menu is hidden after showing, or when the user stops
  interacting with it and it was shown for the dismiss overlay)
- Fix issue with bounds animation callback not working due to the app
  window being removed and not updating the app transition that its
  animation "finished"
- Add additional logging throughout to trace PiP animation

Bug: 36877782
Test: Enter PIP, tap to show menu, wait for it to hide, and then use
      wired headset button

Change-Id: Ie88ba107d7fffdd182a4063ef4f324b58669d0ad
packages/SystemUI/src/com/android/systemui/pip/phone/PipMenuActivity.java
packages/SystemUI/src/com/android/systemui/pip/phone/PipMenuActivityController.java
packages/SystemUI/src/com/android/systemui/pip/phone/PipMotionHelper.java
packages/SystemUI/src/com/android/systemui/pip/phone/PipTouchHandler.java
services/core/java/com/android/server/wm/AppWindowToken.java
services/core/java/com/android/server/wm/BoundsAnimationController.java
services/core/java/com/android/server/wm/WindowSurfacePlacer.java