OSDN Git Service

Partial fix for jumping freeform windows
authorVladislav Kaznacheev <kaznacheev@google.com>
Thu, 12 May 2016 19:56:31 +0000 (12:56 -0700)
committerVladislav Kaznacheev <kaznacheev@google.com>
Thu, 12 May 2016 23:56:32 +0000 (23:56 +0000)
commitcb4bbd7af8d07fc53938ae81f2604498b502f1dd
tree6068435fdfaf8560809f156a3ef2b3e00eb1ab99
parenta63e1325b595d84dea7d33cb2e2c149acb326204
Partial fix for jumping freeform windows

Currently every focus change causes a freeform window to jump
for a few frames. The size of the jump is equal to the difference
in inset size (which is derived directly from the window elevation).

This problem goes away for most real use cases if the insets are
not allowed to decrease.

Bug: 28318973
Bug: 22668382
Change-Id: I77ca440a7d9c89cc4d45e6667bf37da94a5c8a9a
core/java/android/view/WindowManager.java