OSDN Git Service

Only use the pre-animation bounds when an animation is running and is set
authorWinson Chung <winsonc@google.com>
Wed, 6 Jun 2018 16:34:23 +0000 (09:34 -0700)
committerWinson Chung <winsonc@google.com>
Thu, 7 Jun 2018 02:12:36 +0000 (02:12 +0000)
commit8efa1655d95d7bf7bcd0d951494a660ad924de04
tree2afd9be451e3d46bb00a06fd4aea2896487db869
parent65a411ac45972df266abfeab237dc818486fd3f3
Only use the pre-animation bounds when an animation is running and is set

- Fix issue with NaN being calculated as the saved fraction due to the wrong
  bounds being used

Bug: 109841835
Test: atest CtsActivityManagerDeviceTestCases:ActivityManagerPinnedStackTests
Test: Repeatedly launch pip into fullscreen landscape app, and ensure that
      the saved snapfraction is calculated correctly

Change-Id: I9b442cda636121164af1f3e66050894d06518439
services/core/java/com/android/server/wm/AppWindowToken.java
services/core/java/com/android/server/wm/PinnedStackController.java