diff options
author | 2014-08-24 17:41:49 -0700 | |
---|---|---|
committer | 2014-08-24 20:28:24 -0700 | |
commit | 4a71d2c48021351e10bd61d5ee007533651da627 (patch) | |
tree | 6f85396f926b5fa5b8712ff7dadfbb4b435e2ea0 /java/src/com/android/inputmethod/compat/AppWorkaroundsUtils.java | |
parent | cd6ef9a8b117b82623251510fac72ee108ec1a2a (diff) | |
download | latinime-4a71d2c48021351e10bd61d5ee007533651da627.tar.gz latinime-4a71d2c48021351e10bd61d5ee007533651da627.tar.xz latinime-4a71d2c48021351e10bd61d5ee007533651da627.zip |
Allow to add/remove background color to/from the committed text
This is a groundwork for subsequent CLs where we need to
add/remove background color to/from the commited text.
In this CL, we use Spanned#SPAN_COMPOSING so that we can easily
remove such a background color by calling
InputConnection#finishComposingText. To make this operation easy
and realiable, we need to track whether we have specified the
background color to the commited text or not at one place. Here
we use RichInputConnection for this purpose.
Change-Id: I5f9bc4425c5d1b80a719a20e5baf336729ec08d2
Diffstat (limited to 'java/src/com/android/inputmethod/compat/AppWorkaroundsUtils.java')
0 files changed, 0 insertions, 0 deletions