diff options
author | yingrenw <yingrenw@codeaurora.org> | 2017-07-06 18:37:35 +0800 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2017-07-12 10:44:20 -0700 |
commit | a9f4bffbfc9802ca86a813de2bccea9572f710af (patch) | |
tree | dd07c3b22a66d68ac2c9e15a1296138cab016908 /src | |
parent | ea36114e4b974d097c4938d967ba5ad83e062831 (diff) | |
download | android_packages_apps_Trebuchet-a9f4bffbfc9802ca86a813de2bccea9572f710af.tar.gz android_packages_apps_Trebuchet-a9f4bffbfc9802ca86a813de2bccea9572f710af.tar.bz2 android_packages_apps_Trebuchet-a9f4bffbfc9802ca86a813de2bccea9572f710af.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.
Bug: 63534074
Change-Id: I3713f24c9206fe16a8da2a23e6c90d68079dd533
Diffstat (limited to 'src')
-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 8a0fd46f7..43033024f 100644 --- a/src/com/android/launcher3/allapps/search/DefaultAppSearchAlgorithm.java +++ b/src/com/android/launcher3/allapps/search/DefaultAppSearchAlgorithm.java @@ -132,7 +132,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; } } } |