Search in Settings for Japanese
Normalize Hiragana and Katakana in Settings search. Fixes: 28410478 Test: manual - set the device language to Japanese and search in Settings. Test: manual Change-Id: Iee76da6a895ea006959c23f4eb64f62af0917c34
This commit is contained in:
@@ -24,8 +24,11 @@ import android.util.Log;
|
||||
|
||||
import com.android.settings.dashboard.SiteMapManager;
|
||||
import com.android.settings.overlay.FeatureFactory;
|
||||
import com.android.settings.search.indexing.IndexData;
|
||||
import com.android.settingslib.wrapper.PackageManagerWrapper;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
/**
|
||||
* FeatureProvider for the refactored search code.
|
||||
*/
|
||||
@@ -130,6 +133,9 @@ public class SearchFeatureProviderImpl implements SearchFeatureProvider {
|
||||
if (TextUtils.isEmpty(query)) {
|
||||
return null;
|
||||
}
|
||||
if (Locale.getDefault().equals(Locale.JAPAN)) {
|
||||
query = IndexData.normalizeJapaneseString(query);
|
||||
}
|
||||
return query.trim();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user