diff options
author | Charles Chen <charlesccchen@google.com> | 2020-08-05 12:21:35 +0800 |
---|---|---|
committer | Charles Chen <charlesccchen@google.com> | 2020-08-24 14:45:02 +0800 |
commit | a4f73d7f1f73ca45b99bd35dac5ae5726289060f (patch) | |
tree | 585b11359dc848d68e11ff8b36cc95404fce52a2 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | dd5f3cd7fb6a1dd795761b8d6fa1524701439eb3 (diff) |
Respect UI Context for getDisplay
Before InputMethodService initializes, InputMethodService#getDisplay
will throw UnsupportedOperationException because it doesn't attach to
any display. However, it may make developers confuse about why
throwing exception for an UI context. This CL workarounds to also
check isUiContext flags to make the result of IMS#getDisplay consistent.
It should be considered to remove after IMS migrate to WindowContext
concept.
fixes: 161964893
Test: atest InputMethodServiceTest#testGetDisplayBeforeInitialization
Change-Id: Ie0bda707f0196b45a8851f645da7ecab6814bed6
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions