6e0b22bea91398403ea500360b02ff2fc7a03d00 |
|
25-Jan-2012 |
Gilles Debunne <debunne@google.com> |
Modified algorithm to remove duplicated suggestions Bug 5916225 Duplicates were removed when received from SpellChecker, in a way that could move the top candidates lower in the list. Moved that code to the part that creates the actual suggestion list, to make it more generic. The order of the first SuggestionSpan is guaranteed to be respected. Also mentionned non null suggestions and fixed a problem in SuggestionSpan constructor. Change-Id: Iaa3b1b84ae512451e439e5c5e63448c2a19145b5
/frameworks/base/core/java/android/text/style/SuggestionSpan.java
|
c5436f204ba938219223a57c83586aba543f6888 |
|
06-Dec-2011 |
Gilles Debunne <debunne@google.com> |
Prevent NPE in SuggestionSpan One SuggestionSpan constructor provide null as the default context. This will always create an NPE in initStyle. Prevent this. Change-Id: Ic2acffd2c8b9cda9c99b689d1b1a7f15d17b65d0
/frameworks/base/core/java/android/text/style/SuggestionSpan.java
|
0f0a3945ef98b3c30839ab7b746bf8cc55b78d33 |
|
26-Oct-2011 |
satok <satok@google.com> |
Make FLAG_AUTO_CORRECTION public Bug: 5440299 Change-Id: Ia82745e793be741c1558ce15b189b63872107ddb
/frameworks/base/core/java/android/text/style/SuggestionSpan.java
|
9ca4b4377c6c94cca181c57bd9c784386223d274 |
|
07-Oct-2011 |
satok <satok@google.com> |
Add a hidden flag for the auto correction indicator in SuggestionSpan Bug: 5245468 Change-Id: Ic111554da86fefd47dd9a26c1bd41e4ee57dc552
/frameworks/base/core/java/android/text/style/SuggestionSpan.java
|
c9fd978da60f76c0576150c55629a034e1fa19fb |
|
09-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Bug 5281947: add to dictionnary option promoted in suggestions. When several SuggestionSpans are available at a given position, their content are merged, in creation time order. As a result, the IME's suggestions are picked before the spell check, and no add to dictionnary option is created. This CL modifies the comparator to make easy correction spans appear first (Voice IME), then misspelled words and then regular suggestions. Also avoids the creation of a new comparator and length hash map on every display. Change-Id: I1f9f031a6fdcbbc09f248a192b83051092765f8e
/frameworks/base/core/java/android/text/style/SuggestionSpan.java
|
51322732739b355dd842abc9cef34df8613b2626 |
|
10-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Hide method to fix the build Change-Id: I5a556454a722bf037932632fa7e6ee6a2832a68d
/frameworks/base/core/java/android/text/style/SuggestionSpan.java
|
fa4e2d994bb398b89d08304bb233671ef1a5d5f8 |
|
09-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Bug 5278456: text highlight color depends on the type of suggestion spans. Change-Id: I76ac02b7688a297c0e83d593f446a4cf2ee36015
/frameworks/base/core/java/android/text/style/SuggestionSpan.java
|
fe5e9834a3086ab6bd99a4cb0d9273fdeb52ecd8 |
|
02-Sep-2011 |
Luca Zanolin <zano@google.com> |
Remove the suggestion underline when the TextView loses focus. Only the easy correction (i.e., voice ime corrections) will lose the underline, while the misspelled span will not. Change-Id: If96c17473dd70c99b808739ddde800cc93551e2a
/frameworks/base/core/java/android/text/style/SuggestionSpan.java
|
e6d368218918f911b1954296dab25bf84147b4c6 |
|
30-Aug-2011 |
Luca Zanolin <zano@google.com> |
Add EditTextShortcutSpan to provide edit short cut in the text view. At the moment, EditTextShortcutSpan allows only the deletion of the text. In the future, we may decide to add extra functionality, like "retry" where all the text is removed and a specific IME is triggered. Fix the underline. The underline is not defined in thickness, and not as a multiplier of the default underline thickness. Change the behaviour of SuggestionRangeSpan to match the specification. Change-Id: I80437d9887c7a2ff8f62c38afbb0cb7add7ee9c8
/frameworks/base/core/java/android/text/style/SuggestionSpan.java
|
6435a56a8c02de98befcc8cd743b2b638cffb327 |
|
05-Aug-2011 |
Gilles Debunne <debunne@google.com> |
Spell checking in TextViews New UX interactions (the Paste action is no longer displayed after a delay) suggestionEnabled flag replaced by existing input type flag. removeSpans fixed in SpannableStringBuilder to always send notifications SuggestionSpan handled by TextView instead of SpannableStringBuilder New span update algorithm to correctly handle edition around word boundaries. Change-Id: I52c01172f19e595fa512e285a565a3fd97c3c50e
/frameworks/base/core/java/android/text/style/SuggestionSpan.java
|
7d1c55fad8194e2c82f5f88f98ab5569f9c52ab9 |
|
16-Aug-2011 |
Luca Zanolin <zano@google.com> |
Change the behavior of SuggestionSpan. SuggestionSpan can be accessed in two different ways: - by tapping on the text (easy access) - by tapping on "replace" pop-up (not easy and difficult to discover) The "easy access" will be used for dictionary suggestions and voice recognition suggestions. The suggestion span can be rendered into two different way: - default, text is underlined in blue - spelling error, text is underlined in red Change-Id: I0af0fe6700d0ad588facb21c021dc6f59ef172f1
/frameworks/base/core/java/android/text/style/SuggestionSpan.java
|
4dacef25662de37825fa7a67fd6bdb318b31d8d9 |
|
08-Jul-2011 |
Gilles Debunne <debunne@google.com> |
Fleshed up SuggestionSpan documentation. Bug 4553472 Change-Id: I3b5be9a6da79398b03d98eb33eb61a55fd702960
/frameworks/base/core/java/android/text/style/SuggestionSpan.java
|
42c5a1666c4e576ccd5974233513100aad2c1534 |
|
26-May-2011 |
satok <satok@google.com> |
Fix internal variables and equals in SuggestionSpan Bug: 4443922 - Instantiating other package's class for the name is complicated, so we changed the internal value for the notification target class from Class to String. - Implement equals Change-Id: Iaf7682be777f0027d33c9a3be4609ac01b6950ad
/frameworks/base/core/java/android/text/style/SuggestionSpan.java
|
f9f01008624e2d28c15a90d942fa36f98c8c967d |
|
19-May-2011 |
satok <satok@google.com> |
Add Apis to send notifications when the suggestion was picked - Due to a strong request from VoiceIME Bug: 4443922 Change-Id: Ia539de0acf66053e0349daec459d75e36805f6bf
/frameworks/base/core/java/android/text/style/SuggestionSpan.java
|
ee511cc529bcbb8551af4313cf1d2bbf0362de14 |
|
05-May-2011 |
Gilles Debunne <debunne@google.com> |
SuggestionSpans are preserved when picked. This is the exception case: text replacement should NOT remove SuggestionSpans when this is the result of a Suggestion pick in the popup. Save them and restore them after the text replacement. Only spans that entirely englobe the replaced region make sense after the text replacement. Change-Id: Ib18eb6437c3a63fd0e788ebd4565c8f42e83503b
/frameworks/base/core/java/android/text/style/SuggestionSpan.java
|
a00972ab9a95f945342fdbf58956992e01310398 |
|
14-Apr-2011 |
Gilles Debunne <debunne@google.com> |
Fix around suggestionSpan. Since the kind was unknown, doing a copy/cut on text with a SuggestionSpan crashed. Change-Id: I10c0677b3587897b82c794db57d7b07149f12e09
/frameworks/base/core/java/android/text/style/SuggestionSpan.java
|
b3fc1a5b8b8f88eaf00b05957523cbdc0944b24b |
|
06-Apr-2011 |
satok <satok@google.com> |
Rename CorrectionSpan to SuggestionSpan Change-Id: I004b2e012b2de4de959a31da1f55b63ca7c14199
/frameworks/base/core/java/android/text/style/SuggestionSpan.java
|