summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/allapps
diff options
context:
space:
mode:
authoryingrenw <yingrenw@codeaurora.org>2017-07-06 18:37:35 +0800
committeryingrenw <yingrenw@codeaurora.org>2017-07-12 16:11:40 +0800
commitad19a3225d1558eb4d9f77e3d92f8baca5f59c66 (patch)
treef67eaddd9e3d1c128b15a25a5c102e7c4169cabc /src/com/android/launcher3/allapps
parenta80a70f2f8c5e32e7b1ec6c78c4f7c3b3500102e (diff)
downloadandroid_packages_apps_Trebuchet-ad19a3225d1558eb4d9f77e3d92f8baca5f59c66.tar.gz
android_packages_apps_Trebuchet-ad19a3225d1558eb4d9f77e3d92f8baca5f59c66.tar.bz2
android_packages_apps_Trebuchet-ad19a3225d1558eb4d9f77e3d92f8baca5f59c66.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
Diffstat (limited to 'src/com/android/launcher3/allapps')
-rw-r--r--src/com/android/launcher3/allapps/DefaultAppSearchAlgorithm.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/launcher3/allapps/DefaultAppSearchAlgorithm.java b/src/com/android/launcher3/allapps/DefaultAppSearchAlgorithm.java
index 06cf9aa71..136d36938 100644
--- a/src/com/android/launcher3/allapps/DefaultAppSearchAlgorithm.java
+++ b/src/com/android/launcher3/allapps/DefaultAppSearchAlgorithm.java
@@ -130,7 +130,8 @@ public class DefaultAppSearchAlgorithm {
// Always a break point for a symbol
return true;
default:
- return false;
+ // Always a break point at first character
+ return prevType == Character.UNASSIGNED;
}
}
}