diff options
author | yingrenw <yingrenw@codeaurora.org> | 2017-07-06 18:37:35 +0800 |
---|---|---|
committer | Bruno Martins <bgcngm@gmail.com> | 2019-10-20 14:00:37 +0100 |
commit | 588265ff1c50f49fce3b3bc3e263c6ee4ecb54e4 (patch) | |
tree | a0b446e7044c125a7ee5646530bf0a38d77beac8 | |
parent | ffdad1b38fe5d97bd242075d099e7a01dc439175 (diff) | |
download | android_packages_apps_Trebuchet-588265ff1c50f49fce3b3bc3e263c6ee4ecb54e4.tar.gz android_packages_apps_Trebuchet-588265ff1c50f49fce3b3bc3e263c6ee4ecb54e4.tar.bz2 android_packages_apps_Trebuchet-588265ff1c50f49fce3b3bc3e263c6ee4ecb54e4.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; } } |