maiacore android keyboard app or something
Find a file
Jean Chalard 9fd9a68d87 Fix a bug on rotation with selection.
The symptom : when text is selected and the device is rotated,
sometimes the keyboard sets the word as being composed around
the start of the selection. Upon the next rotation this ends up
with the keyboard committing some text in place of the selection.

The cause : another bug in the framework with rotation >.>
The keyboard receives a call to startInput with a wrong cursor
position, namely one that does not represent a selection. The
keyboard sets a composition according to this wrong data. When
the keyboard is rotated again, it commits the text, which takes
the place of the selection.

The solution : actually when restarting input the keyboard
realizes that the cursor position is wrong. We cancel composition
at that time.
For robustness, this change also implements two other defensive
changes : upon call to onUpdateSelection, we actually realize
that the previous values were wrong, so we also fix it at that
time, and in addition, when rotating, we finishComposingText()
instead of commitText() which is less dangerous. Implementing
this later change also allows us to let less internal variables
from InputLogic escape to LatinIME, so it's also a good change
for design.

Bug: 14140799

Change-Id: Ib10de18e53e376ac1bbc8487e13d969828483346
2014-06-06 11:18:23 +09:00
dictionaries Enrich the Spanish dictionary. 2014-06-03 22:48:19 +09:00
java Fix a bug on rotation with selection. 2014-06-06 11:18:23 +09:00
native Add length check for attaching a BoS marker. 2014-05-28 20:20:39 +09:00
tests Merge "Refactoring" 2014-06-04 07:43:31 +00:00
tools Reorder keys around the spacebar 2014-06-04 00:45:25 +09:00
Android.mk Build native subdirectories first 2013-01-28 20:07:31 -08:00
CleanSpec.mk Add a clean step for LatinIME native lib. 2014-03-21 10:46:24 +09:00