summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoryingrenw <yingrenw@codeaurora.org>2017-07-06 18:37:35 +0800
committerMichael Bestas <mkbestas@lineageos.org>2019-12-12 15:18:16 +0200
commit753d0e9d1e95736431a5f00b19249f94bc847702 (patch)
treed6dcb92dc73144e899bd2e8d34121d7f1faed53f /src
parentd57729c891010e7153f4ed0ea84a03b8412c604c (diff)
downloadandroid_packages_apps_Trebuchet-753d0e9d1e95736431a5f00b19249f94bc847702.tar.gz
android_packages_apps_Trebuchet-753d0e9d1e95736431a5f00b19249f94bc847702.tar.bz2
android_packages_apps_Trebuchet-753d0e9d1e95736431a5f00b19249f94bc847702.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>
Diffstat (limited to 'src')
-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;
}
}