diff options
author | Tarandeep Singh <tarandeep@google.com> | 2018-01-22 14:33:33 -0800 |
---|---|---|
committer | Tarandeep Singh <tarandeep@google.com> | 2018-01-23 14:56:06 -0800 |
commit | 3fecef119e1921204ea06792586ee10a94608ae6 (patch) | |
tree | afa0f44c9ca2d63e4e82f9ea67b7cf64390357a2 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 44026b7f48e2e0bf1e4a0c17b9f51bd84e145c52 (diff) |
Make IMS.setBackDisposition() work.
InputMethodService.setBackDisposition() has been broken from a long
time. This is how setBackDisposition() is supposed to work
1. BACK_DISPOSITION_WILL_DISMISS:
When Keyboard is visible back button will show as down arrow (in
navigation bar) and tapping it will dismiss keyboard.
2. BACK_DISPOSITION_WILL_NOT_DISMISS:
When keyboard is visible, back button will be shown as BACK arrow and
tapping it will send the back event to current activity. If activity
doesn't handle onKeyDown() for back button, activity will finish and
keyboard will hide.
Note: backDisposition flags reset when finishInput() is called.
Bug: 38513361
Test: Manual with apk attached in bug
Test: atest InputMethodServiceTest
Change-Id: I99e7c413fe1a93f8d8cff897b5c5f0947690d2c0
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions