OSDN Git Service

Fix calculation of content insets
authorJorim Jaggi <jjaggi@google.com>
Tue, 12 Apr 2016 04:08:17 +0000 (21:08 -0700)
committerJorim Jaggi <jjaggi@google.com>
Wed, 13 Apr 2016 02:35:24 +0000 (19:35 -0700)
commit656f6506fbbee34f2f66f013702ad860b738a73a
tree7092150ddf21dd9c70616c31d8fc7659fcde5bb5
parentb72c9ad721e5ff5b9d5a45ca4ba2608940815388
Fix calculation of content insets

When calculating all the frames and insets, we need to use the actual
frame instead of layoutContainingFrame. To do this, we layout mFrame
with layoutContaining/layoutDisplayFrame, calculate all the content
frames and insets, and then offset everything by the constant offset.

Bug: 28075359
Change-Id: I78f0a54ca2a0cc6c7c8be21153c2b2c8f1d5c0a9
services/core/java/com/android/server/wm/WindowState.java