diff options
| author | wilsonshih <wilsonshih@google.com> | 2022-06-02 14:27:42 +0800 |
|---|---|---|
| committer | wilsonshih <wilsonshih@google.com> | 2022-06-02 14:27:42 +0800 |
| commit | e4f2b2c015eb73e149753f2fd08389a1ae8a7754 (patch) | |
| tree | c7dfa295dc86b5ede138ebe34858cafe91089a1e /core/java/android/inputmethodservice/AbstractInputMethodService.java | |
| parent | 58db11b5512de0701810f98a633576411bc4340a (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: 209920544
Test: enable shell transition, repeatly run AppConfigurationTests
testConfigurationUpdatesWhenRotatingWhileFullscreen and verify no crash
in system ui.
Change-Id: I792417a55a588c9552529f2815c1ab5d88f427e7
Diffstat (limited to 'core/java/android/inputmethodservice/AbstractInputMethodService.java')
0 files changed, 0 insertions, 0 deletions
