aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Tell the text view we reset state on finish inputJean Chalard2013-05-291-0/+1
| | | | | | | | This should be done in onFinishInput rather than onFinishInputView but for an unknown reason onFinishInput never comes. Bug: 9113167 Change-Id: Iafb40846a3ed8fad78bfc160d17cd431f81fe891
* Implement KIND_OOV_CORRECTIONSatoshi Kataoka2013-05-271-3/+5
| | | | | Bug: 9127749 Change-Id: I96db15a3138e6b522c4c6ad16cc7faad577d3772
* Use localized toLowerString in AutoCorrection.isValidWordTadashi G. Takaoka2013-05-241-1/+1
| | | | | Bug: 9112465 Change-Id: I63eb4115f393444560e80220d4c90f0f7101b934
* Remove unnecessary methods of KeyboardSwitcherTadashi G. Takaoka2013-05-221-1/+2
| | | | Change-Id: Idd3647bb1a1d40df8bb89eda715d45427a58d0cd
* am 167ba345: am 89fe1f50: Add a method to work around apps broken by ↵Jean Chalard2013-05-201-0/+4
|\ | | | | | | | | | | | | recorrection * commit '167ba3459b0ce02b9add12ade9388bd2b1e6eb62': Add a method to work around apps broken by recorrection
| * Add a method to work around apps broken by recorrectionJean Chalard2013-05-211-0/+4
| | | | | | | | | | Bug: 8944307 Change-Id: I8986622554f30aaf4f595099c4ab5652b75c972c
* | am 5906b05b: am 7058b02a: Extract a new class for app-specific workarounds.Jean Chalard2013-05-201-21/+16
|\| | | | | | | | | * commit '5906b05bb50c0a67bd4f03fcfae41db3daefe0bc': Extract a new class for app-specific workarounds.
| * Extract a new class for app-specific workarounds.Jean Chalard2013-05-211-21/+16
| | | | | | | | | | Bug: 8944307 Change-Id: Iaff9dd03d3d856a6bdaa2b16c4e71e95cd2b6349
| * am f1dcf725: Merge "Don\'t process recorrection or resets when not shown"Jean Chalard2013-05-151-3/+13
| | | | | | | | | | * commit 'f1dcf725061b3e61e40540566a5385cf4934f424': Don't process recorrection or resets when not shown
* | Fix punctuation loggingKurt Partridge2013-05-171-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Punctuation is currently put into the same LogUnit as the following word. This is counter-intuitive and makes post-processing more complicated. This change causes punctuation to be put into its own LogUnit. A tricky case is the phantom space. A phantom space is inserted right before other text, whose MotionEvents have already been collected and inserted into mCurrentLogBuffer. Phantom spaces are handled by creating their own LogUnit and inserting it into the LogBuffer right before mCurrentLogBuffer is shifted in. Change-Id: I102d7cd93982ad37ba0abb6c1ac0f66b85b5f95d
* | Merge "Remove unnecessary commit/uncommit"Kurt Partridge2013-05-151-2/+0
|\ \
| * | Remove unnecessary commit/uncommitKurt Partridge2013-05-141-2/+0
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the user reverts a commit, this causes the committed word to be changed. The user usually then goes back to edit that word. Going back to edit causes an uncommit, so that the editing actions are added onto the LogUnit containing the operations used to construct the word. But currently, reverting also involves its own commit/uncommit pair, with the caller performing the uncommit, and the commit happening inside the revert command. This may have been necessary in the past, when revert was called in different situations, but is unnecessary now. Furthermore, the guarding conditions are currently such that the uncommit doesn't always undo the effects of the commit, corrupting the log output. Change-Id: I74af41f4f1db2fcabfa496dcc4a2d7bd0af19b3a
* / Don't process recorrection or resets when not shownJean Chalard2013-05-151-3/+13
|/ | | | | Bug: 8954116 Change-Id: Ica27dbfc570643bb81e6cdf34cc7c796ea080d71
* Merge "Revert "Fix isSuggestionsStripVisible when keyboard hidden""Ken Wakasa2013-05-141-14/+5
|\
| * Revert "Fix isSuggestionsStripVisible when keyboard hidden"Ken Wakasa2013-05-141-14/+5
| | | | | | | | | | | | | | This reverts commit cb0d1c4c584f3f47da3f630441b7de1e741584e0 Change-Id: Ie2c8e01c25bd051b6157e8f32ab84392a0c7252a bug: 8954116
* | Back to previous keyboard layout by canceling sliding inputTadashi G. Takaoka2013-05-141-3/+10
|/ | | | | Bug: 8915171 Change-Id: Iabdeb7920f67f89246087c3ee06240406ecfbc3d
* Fix isSuggestionsStripVisible when keyboard hiddenJean Chalard2013-05-141-5/+14
| | | | | | | | When the keyboard is hidden, the suggestion strip is never visible. Bug: 8954116 Change-Id: I9f242d07b49ad60b625a22429bb013251e814905
* Optimizations and safeguards.Jean Chalard2013-05-081-2/+10
| | | | | | | | | | | - Don't call finishComposingText when useless. - Add safeguards against calling setComposingRegion when the data returned by the editor is inconsistent. - Cancel pending recorrection messages when new messages arrive. Bug: 8842941 Bug: 8845001 Change-Id: I939701033cf5c2bbd85871ecf83e329021ddeb91
* Unify space-adding on gestures.Jean Chalard2013-05-071-15/+7
| | | | | | | This is much simpler, and more correct. Bug: 8808497 Change-Id: I7a56bf9d6d9fb481f898b7a9f5898a86c11b34c0
* Pass blockOffensiveWords as a parameterJean Chalard2013-05-011-0/+1
| | | | | Bug: 8773353 Change-Id: Ic1019742ce7ff6e4f7fff4d2729f8ab52d841488
* Don't do recorrection when suggestions are off.Jean Chalard2013-05-011-2/+7
| | | | | Bug: 8767981 Change-Id: If5c775e488b91ae03ecce2673c99918ac8134928
* Merge "Fix an NPE in recorrection" into jb-mr2-devJean Chalard2013-04-191-8/+11
|\
| * Fix an NPE in recorrectionJean Chalard2013-04-191-8/+11
| | | | | | | | | | | | | | | | | | Also, theoretically, we don't want to retrieve older suggestions if there are no results for a recorrection - that would look random. This bug addresses this too. Bug: 8657919 Change-Id: I44f36d34a708a968ab71fa0592da57f4c97d4b7f
* | Merge "Fix an NPE in recapitalize" into jb-mr2-devJean Chalard2013-04-191-2/+5
|\ \
| * | Fix an NPE in recapitalizeJean Chalard2013-04-191-2/+5
| |/ | | | | | | | | Bug: 8657736 Change-Id: I459d1c200826c1c394f8207475ecf60a4f356793
* / Initialize dictionaries at onStartInputViewJean Chalard2013-04-181-4/+10
|/ | | | | Bug: 8344402 Change-Id: I41b8440f0d72a66fde3f6feb0db8239c9bb10ea3
* Don't insert automatic spaces when text looks like a URLJean Chalard2013-04-161-1/+2
| | | | | | | | | | | | | | | This is about as ad-hoc as it gets, but then again, what we want is probably as ad-hoc as it gets. All URL boxes I know of double as search bars, and not adding automatic spaces there sucks (e.g. in Chrome URL bar). And in other boxes actually you don't want to add a space if it looks like a URL. QSB isn't even a search box, and it behaves like this. So I think this is actually the right answer to the problem. Bug: 7062925 Change-Id: Ib09472b34644fd5bf2dc84bb97cedeeba28bcd02
* Merge "Don't recapitalize on shift while on symbol layout"Jean Chalard2013-04-161-1/+6
|\
| * Don't recapitalize on shift while on symbol layoutJean Chalard2013-04-161-1/+6
| | | | | | | | Change-Id: Ibf2cdedf510c296561bb5eeb6ff18c3414d6d6f4
* | Match the keyboard state to the recapitalize state.Jean Chalard2013-04-161-0/+11
|/ | | | | Bug: 7657025 Change-Id: I2f8fe7fc4596a498322ba5ccabbd0c18a2bc36cf
* Merge "Clean up RecapitalizeStatus"Jean Chalard2013-04-161-5/+5
|\
| * Clean up RecapitalizeStatusJean Chalard2013-04-161-5/+5
| | | | | | | | Change-Id: Ib4d002f90cd3a0e9ad4c04b883b0c1f05ada3ccf
* | Merge "Fix an NPE"Jean Chalard2013-04-161-0/+1
|\ \ | |/ |/|
| * Fix an NPEJean Chalard2013-04-161-0/+1
| | | | | | | | | | Bug: 8620678 Change-Id: Ia91761f33518a010b2844d34523cadece261c67e
* | Merge "Fix an NPE"Jean Chalard2013-04-161-2/+2
|\ \
| * | Fix an NPEJean Chalard2013-04-161-2/+2
| |/ | | | | | | | | Bug: 8620758 Change-Id: I39f07939ebb6148a48aae5b915ee807002a5b02d
* / Small performance improvement / minor bugfixJean Chalard2013-04-151-3/+3
|/ | | | | | | | | The only place where it's used is checked for nullity. Also, it's possible, also difficult, to match a different recapitalize with the old code, triggering a bug that this fixes. Change-Id: I717d6df489025c75d1caca290a9086c3b39a9306
* Merge "Have Latin IME re-capitalize a selected string"Jean Chalard2013-04-151-1/+39
|\
| * Have Latin IME re-capitalize a selected stringJean Chalard2013-04-151-1/+39
| | | | | | | | | | | | | | | | | | | | Upon pressing Shift, if there is currently a selected string, have Latin IME change its capitalization. This does not yet have the keyboard mode follow the mode - the change is complicated enough as is. Bug: 7657025 Change-Id: I54fe8485f44e04efd72c71ac9feee5ce21ba06f2
* | If there are no suggestion span, recompute suggestions.Jean Chalard2013-04-151-14/+57
|/ | | | | Bug: 8084810 Change-Id: I1743c09c43ca6835bb2f607684b037bf17d36335
* Reject a previously user-refused suggestion.Jean Chalard2013-04-151-0/+2
| | | | | | | | | If the user gestures a word, then hits backspace in disapproval, and gestures about the same thing again, make sure that we don't suggest the same thing again. Bug: 7549311 Change-Id: I793bc4df7c3841fa8f2f4146707c26e873f374c1
* Merge "Remove the dialog to insert words to the dictionary."Jean Chalard2013-04-121-4/+0
|\
| * Remove the dialog to insert words to the dictionary.Jean Chalard2013-04-121-4/+0
| | | | | | | | | | Bug: 8562529 Change-Id: Ibd853f0cb995e7fb35f8730eafcef73ead58c869
* | Merge "Restart suggestions when the cursor moves."Jean Chalard2013-04-121-7/+67
|\ \
| * | Restart suggestions when the cursor moves.Jean Chalard2013-04-121-7/+67
| |/ | | | | | | | | | | | | | | | | | | | | This uses the old suggestions. It does not try to recompute new suggestions if there are no old suggestions yet: this is coming in a later change. If there are no suggestions, this shows the word itself as a suggestion. Bug: 8084810 Change-Id: I4c2e25df0ff3673be1825f57a0c19a9d23d47a48
* / Fix a bug with bad application completionsJean Chalard2013-04-121-1/+2
|/ | | | | Bug: 8561056 Change-Id: I91fb0ac76dabfc841bafc0e2c0ea9f63e6f604f9
* Merge "Fix a bug where a space would not be inserted before a gesture"Jean Chalard2013-04-101-1/+2
|\
| * Fix a bug where a space would not be inserted before a gestureJean Chalard2013-04-101-1/+2
| | | | | | | | | | Bug: 8583675 Change-Id: I14924fef5663f48481994c02c56be45f9f85be65
* | Use private lock object instead of synchronized methodTadashi G. Takaoka2013-04-101-22/+31
|/ | | | Change-Id: Ifc62bacbd0583a7d102009681a94bdd9ccff7d47
* Merge "Offer to add any OOV typed word to the dictionary."Jean Chalard2013-04-091-2/+5
|\