diff options
author | yingrenw <yingrenw@codeaurora.org> | 2017-07-06 18:37:35 +0800 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2019-12-12 15:18:16 +0200 |
commit | 753d0e9d1e95736431a5f00b19249f94bc847702 (patch) | |
tree | d6dcb92dc73144e899bd2e8d34121d7f1faed53f | |
parent | d57729c891010e7153f4ed0ea84a03b8412c604c (diff) | |
download | packages_apps_Trebuchet-753d0e9d1e95736431a5f00b19249f94bc847702.tar.gz packages_apps_Trebuchet-753d0e9d1e95736431a5f00b19249f94bc847702.tar.bz2 packages_apps_Trebuchet-753d0e9d1e95736431a5f00b19249f94bc847702.zip |
Launcher3: Can't search out local app by Chinese
Description:
Chinese content type is Character.OTHER_LETTER.
When key matches,it check the content type. And
if type is Character.OTHER_LETTER, it doesn't
support search and break.
When the content type is Character.OTHER_LETTER,
make it work normally.
Change-Id: I3713f24c9206fe16a8da2a23e6c90d68079dd533
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
-rw-r--r-- | src/com/android/launcher3/allapps/search/DefaultAppSearchAlgorithm.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/launcher3/allapps/search/DefaultAppSearchAlgorithm.java b/src/com/android/launcher3/allapps/search/DefaultAppSearchAlgorithm.java index 26f6ec357..604ac8374 100644 --- a/src/com/android/launcher3/allapps/search/DefaultAppSearchAlgorithm.java +++ b/src/com/android/launcher3/allapps/search/DefaultAppSearchAlgorithm.java @@ -141,7 +141,8 @@ public class DefaultAppSearchAlgorithm implements SearchAlgorithm { // Always a break point for a symbol return true; default: - return false; + // Always a break point at first character + return prevType == Character.UNASSIGNED; } } |