diff options
author | Winson Chung <winsonc@google.com> | 2015-03-13 18:50:17 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-03-13 18:50:18 +0000 |
commit | c13b994c04b0945f25dad6487fa3151fc5153164 (patch) | |
tree | e384149a9e8dd80c11c10fd82b6adc3bca9929c2 /src/com/android/launcher3/AlphabeticalAppsList.java | |
parent | d68725cd20be0c1d5ebd583da5fde0f007a69bf8 (diff) | |
parent | 888b3a10bf1e99192f12c844ee275c6f360d6b34 (diff) | |
download | android_packages_apps_Trebuchet-c13b994c04b0945f25dad6487fa3151fc5153164.tar.gz android_packages_apps_Trebuchet-c13b994c04b0945f25dad6487fa3151fc5153164.tar.bz2 android_packages_apps_Trebuchet-c13b994c04b0945f25dad6487fa3151fc5153164.zip |
Merge "Minor changes to apps view." into ub-launcher3-burnaby
Diffstat (limited to 'src/com/android/launcher3/AlphabeticalAppsList.java')
-rw-r--r-- | src/com/android/launcher3/AlphabeticalAppsList.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/com/android/launcher3/AlphabeticalAppsList.java b/src/com/android/launcher3/AlphabeticalAppsList.java index 2847afc89..c1d2738da 100644 --- a/src/com/android/launcher3/AlphabeticalAppsList.java +++ b/src/com/android/launcher3/AlphabeticalAppsList.java @@ -78,9 +78,7 @@ public class AlphabeticalAppsList { * Returns the section name for the application. */ public String getSectionNameForApp(AppInfo info) { - String title = info.title.toString(); - String sectionName = mIndexer.getBucketLabel(mIndexer.getBucketIndex(title)); - return sectionName; + return mIndexer.computeSectionName(info.title.toString().trim()); } /** @@ -91,6 +89,13 @@ public class AlphabeticalAppsList { } /** + * Returns whether there are no filtered results. + */ + public boolean hasNoFilteredResults() { + return (mFilter != null) && mFilteredApps.isEmpty(); + } + + /** * Sets the current filter for this list of apps. */ public void setFilter(Filter f) { |