aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/RichInputConnection.java
diff options
context:
space:
mode:
authorYohei Yukawa <yukawa@google.com>2014-08-26 21:55:48 -0700
committerYohei Yukawa <yukawa@google.com>2014-08-26 23:42:53 -0700
commita475c85480b2bc2a8d036b4b1ea29f6a8e749ac5 (patch)
treef894ca3d4ba901764648fb18525179733c674bfd /java/src/com/android/inputmethod/latin/RichInputConnection.java
parentbea17c49ec23bf0f646cb548445c7756aa50d233 (diff)
downloadlatinime-a475c85480b2bc2a8d036b4b1ea29f6a8e749ac5.tar.gz
latinime-a475c85480b2bc2a8d036b4b1ea29f6a8e749ac5.tar.xz
latinime-a475c85480b2bc2a8d036b4b1ea29f6a8e749ac5.zip
Introduce a mechanism to hide the indicator speculatively
This is an optional optimization to reduce the UI latency. Imagine that the commit indicator is now displayed and the composing text is being updated, it is highly likely that the commit indicator will disappear unless the application rejects the setComposingText request. If we assume that the application will accept the new composing text without any modifications, we can hide the indicator without waiting for the arrival of new CursorAnchorInfo event. This optimization isn't dangerous because we can show the indicator again when we receive new CursorAnchorInfo event and the assumption is turned out to be invalid. Change-Id: Id59c6607a1029782410611e768791af9984f14ac
Diffstat (limited to 'java/src/com/android/inputmethod/latin/RichInputConnection.java')
0 files changed, 0 insertions, 0 deletions