OSDN Git Service

Prevent updating aspect ratio unless it is different.
authorWinson Chung <winsonc@google.com>
Tue, 21 Mar 2017 17:20:20 +0000 (10:20 -0700)
committerWinson Chung <winsonc@google.com>
Tue, 21 Mar 2017 18:11:46 +0000 (18:11 +0000)
commitc95ff8433a40eafa422fdf56b782350153f605dd
tree5e9683b6570e059981b83017622ebda0207c3472
parent914c4ab1ed31c99886c83d005f255b97a9a70ed5
Prevent updating aspect ratio unless it is different.

- The old check of the bounds assumed there was no expanded state, so when
  a PiP activity tries to set the aspect ratio from a a menu action, it
  will cause an animation to the normal bounds again.

Bug: 36462497
Test: Set aspect ratio in pip action handler
Change-Id: Iba5e9571a3024c8369c2a24d32c2d8f34831ede4
services/core/java/com/android/server/wm/PinnedStackController.java
services/core/java/com/android/server/wm/PinnedStackWindowController.java