diff options
| author | 2022-06-02 14:27:42 +0800 | |
|---|---|---|
| committer | 2022-06-09 06:54:22 +0000 | |
| commit | 72cdc50a41de6dad6b196b4722184bb1e8acfc96 (patch) | |
| tree | 6afb47e255557e084f77ba5c4defa19439005f07 /libs/input/SpriteController.cpp | |
| parent | 2b868683ad1acff45b7bd06407dcdc7555f48c73 (diff) | |
Preventing NPE crash if view is detached from window.
View#getDisplay can return null if the view is detached from window.
Get the display by Context#getDisplay should ensure there can always
return the local display object.
Bug: 235283631
Test: enable shell transition, repeatly run AppConfigurationTests
testConfigurationUpdatesWhenRotatingWhileFullscreen and verify no crash
in system ui.
Change-Id: I792417a55a588c9552529f2815c1ab5d88f427e7
Merged-In: I792417a55a588c9552529f2815c1ab5d88f427e7
(cherry picked from commit e4f2b2c015eb73e149753f2fd08389a1ae8a7754)
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions