summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryingrenw <yingrenw@codeaurora.org>2017-01-03 20:51:33 +0800
committerArne Coucheron <arco68@gmail.com>2017-07-15 06:51:07 +0200
commitef0fdb5302a61a15f66dfc572facd16c683d0f41 (patch)
treee7390e12e9fe513870213d9b18065768261c71a3
parentbb0aa6cbcf6ef267096a4adeb9012d36e9bac01f (diff)
downloadandroid_packages_apps_Trebuchet-staging/cm-14.1-rebase.tar.gz
android_packages_apps_Trebuchet-staging/cm-14.1-rebase.tar.bz2
android_packages_apps_Trebuchet-staging/cm-14.1-rebase.zip
Launcher3: Can't search out local app by Chinesestaging/cm-14.1-rebasecm-14.1-rebase
Description: chinest 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: I56f8963a9dca24854dab0777be1ea0b54a126fe0 CRs-Fixed: 1105245
-rw-r--r--src/com/android/launcher3/allapps/DefaultAppSearchAlgorithm.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/launcher3/allapps/DefaultAppSearchAlgorithm.java b/src/com/android/launcher3/allapps/DefaultAppSearchAlgorithm.java
index 06cf9aa71..a395c6348 100644
--- a/src/com/android/launcher3/allapps/DefaultAppSearchAlgorithm.java
+++ b/src/com/android/launcher3/allapps/DefaultAppSearchAlgorithm.java
@@ -129,6 +129,9 @@ public class DefaultAppSearchAlgorithm {
case Character.DASH_PUNCTUATION:
// Always a break point for a symbol
return true;
+ case Character.OTHER_LETTER:
+ // Always a break point for chinese
+ return true;
default:
return false;
}