OSDN Git Service

Add a new API IMM#dispatchKeyEventFromInputMethod().
authorYohei Yukawa <yukawa@google.com>
Fri, 8 Jan 2016 02:09:44 +0000 (18:09 -0800)
committerYohei Yukawa <yukawa@google.com>
Fri, 8 Jan 2016 02:09:44 +0000 (18:09 -0800)
commit2afe2aa15f7cd98e372d222fa5c21bede865e5b9
tree42614297ba3e46351de3cbab3ff912cf69f7dc51
parent159dd47db34151314e2449347251ad32b30e5ea1
Add a new API IMM#dispatchKeyEventFromInputMethod().

This is a part of effort to reduce the number of dependencies on @hide
method in BaseInputConnection.

Currently BaseInputConnection#sendKeyEvent() cannot be implemented
without relying on @hide internal fields in InputMethodManager.

This is not ideal because app developers cannot implement their own
InputConnection without relying on BaseInputConnection.  If this
functionality needs to be exposed to app developers anyway, then it
should be a public API.

Bug: 24688781
Change-Id: Ib5ea8131de5ba792b10e1a4e51b4d163cf3649e3
api/current.txt
api/system-current.txt
api/test-current.txt
core/java/android/view/inputmethod/BaseInputConnection.java
core/java/android/view/inputmethod/InputMethodManager.java