OSDN Git Service

Make sure mFlags is synced properly in WindowConfiguration
authorKazuki Takise <takise@google.com>
Tue, 19 Jun 2018 04:55:23 +0000 (13:55 +0900)
committerKazuki Takise <takise@google.com>
Wed, 20 Jun 2018 06:10:06 +0000 (15:10 +0900)
commit4e7e789be2e5698216d017a3ac83f7d877790a39
tree62421bc8f6c6ea56c42ca81bda1cb668f8382ff2
parent148d00ac935a344ddc9385caaff80680a228516f
Make sure mFlags is synced properly in WindowConfiguration

The previous logic doesn't have the logic to distinguish "off" and
"undefined" for mFlags. This CL solves this issue by introducing
a variable dedicated to always on top. See b/110383970 for more
background.

Bug: 110383970
Test: atest WindowConfigurationTests
Test: go/wm-smoke
Change-Id: Ia4fe8f43e5f6d65d68b1257951b1770a49af35bc
core/java/android/app/WindowConfiguration.java
services/tests/servicestests/src/com/android/server/wm/DisplayContentTests.java
services/tests/servicestests/src/com/android/server/wm/WindowConfigurationTests.java