diff options
| author | 2022-03-24 14:49:20 +0800 | |
|---|---|---|
| committer | 2022-03-24 15:20:19 +0800 | |
| commit | 28dc4cbba47f5290f4078dccb649cf340ae096fb (patch) | |
| tree | c17e910107d3c8be481405e42f0e2b8744af05d0 /libs/androidfw/StringPool.cpp | |
| parent | 3cb4ef6df5db9067fac497271a091cbbf79332ec (diff) | |
Fix NPE when adding window with policy to hide
WindowState will be created with token. But it may not add
to the token immediately. So at that path it should use
getDisplayContent() that use token to get display.
Such as addWindow -> initAppOpsState -> setAppOpVisibilityLw
-> hide -> startAnimation.
"win.mToken.addWindow(win)" executes after that.
Bug: 226259929
Test: switch user
Change-Id: Ieba9df3bca87d10cd031d25e0b7f1e9a0c311dee
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions