From ef0fdb5302a61a15f66dfc572facd16c683d0f41 Mon Sep 17 00:00:00 2001 From: yingrenw Date: Tue, 3 Jan 2017 20:51:33 +0800 Subject: Launcher3: Can't search out local app by Chinese 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 --- src/com/android/launcher3/allapps/DefaultAppSearchAlgorithm.java | 3 +++ 1 file changed, 3 insertions(+) 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; } -- cgit v1.2.3