commit | d84b2dad4895069b75451d4375d98981ae51dd6d | [log] [tgz] |
---|---|---|
author | Riddle Hsu <riddlehsu@google.com> | Thu Nov 02 20:57:39 2023 +0800 |
committer | Riddle Hsu <riddlehsu@google.com> | Fri Nov 03 15:12:18 2023 +0800 |
tree | cb7c45337e3e3e29369c91b8dbcdb40d980264a5 | |
parent | 488eb9856a19aa14faaaca1ae056d960531278d3 [diff] |
Assign display field when creating WindowState This avoids a NPE trap in WindowManagerService#addWindow that the WindowState is created but WindowToken#addWindow(WindowState) is not call yet (setParent will update mDisplayContent). Also make WindowContainer#getDisplayContent as a final method because the hierarchy should sync the field. Bug: 163976519 Test: CtsWindowManagerDeviceWindow Change-Id: I5caea8288fcf0e960b9e1b7b36a847d8262d2fb1