OSDN Git Service

Clear VISIBLE_FOR_USER flag when isHiddenFromUser is true
authorchaviw <chaviw@google.com>
Wed, 29 May 2019 00:05:28 +0000 (17:05 -0700)
committerchaviw <chaviw@google.com>
Mon, 3 Jun 2019 17:58:18 +0000 (10:58 -0700)
commitbb6bd8ac180cdb8a87925fcf44ed8dfc99a85cbe
treeb9ea077d6fa0b5295dc38d92778685fdb7f99ae8
parent0c1f41d3034521b86cf7fec219ed9919d0901496
Clear VISIBLE_FOR_USER flag when isHiddenFromUser is true

The current code was clearing the LEGACY_POLICY_VISIBILITY flag when
isHiddenFromUser was returning true. This was causing issues since there was no
path to add that flag when the Window was visible for that user. The correct
way is to clear the VISIBLE_FOR_USER flag since that flag will get added again
when the window is visible for that user.

Fixes: 133235040
Test: Switch from one user to another and back. Launcher is visible.
Change-Id: I5161dd83a7a0811a7e3a6ab2af439f352f967a6c
services/core/java/com/android/server/wm/WindowState.java