OSDN Git Service

Fix surface properties not getting applied correctly
authorJorim Jaggi <jjaggi@google.com>
Thu, 25 Jan 2018 16:41:24 +0000 (17:41 +0100)
committerJorim Jaggi <jjaggi@google.com>
Thu, 25 Jan 2018 17:30:08 +0000 (17:30 +0000)
commit88827f7e2ea9d2b966f023220d98a2089730fc3e
tree3c8b79b6c70a2d8537d7dfdb60799fd5c5310393
parent7f1e49f2ff6b97a85dca041a72398d4a56149787
Fix surface properties not getting applied correctly

When we switched to calling prepareSurfaces in
applySurfacesChangesTransaction, we switched from
computeShownFrameLocked to prepareSurfaceLocked, which has an
additional check of waiting for opening, which caused that a
surface size change from a layout never was applied.

The original comment on that check doesn't make sense anymore,
given that we don't animate in prepareSurfaces anymore, so we can
just go ahead and remove that check.

Test: go/wm-smoke
Test: Open voice input activity
Change-Id: I46664fd3c8f9a5c549fdb245125f05f290162ebf
Fixes: 71787613
services/core/java/com/android/server/wm/WindowStateAnimator.java