summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/AlphabeticalAppsList.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/launcher3/AlphabeticalAppsList.java')
-rw-r--r--src/com/android/launcher3/AlphabeticalAppsList.java11
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) {