summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryingrenw <yingrenw@codeaurora.org>2017-07-06 18:37:35 +0800
committerBruno Martins <bgcngm@gmail.com>2019-10-20 14:00:37 +0100
commit588265ff1c50f49fce3b3bc3e263c6ee4ecb54e4 (patch)
treea0b446e7044c125a7ee5646530bf0a38d77beac8
parentffdad1b38fe5d97bd242075d099e7a01dc439175 (diff)
downloadandroid_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.java3
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;
}
}