diff options
Diffstat (limited to 'src/com/android/launcher3/allapps/AlphabeticalAppsList.java')
-rw-r--r-- | src/com/android/launcher3/allapps/AlphabeticalAppsList.java | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/com/android/launcher3/allapps/AlphabeticalAppsList.java b/src/com/android/launcher3/allapps/AlphabeticalAppsList.java index 7bf66510a..608e898ae 100644 --- a/src/com/android/launcher3/allapps/AlphabeticalAppsList.java +++ b/src/com/android/launcher3/allapps/AlphabeticalAppsList.java @@ -138,13 +138,6 @@ public class AlphabeticalAppsList { return item; } - public static AdapterItem asSearchDivider(int pos) { - AdapterItem item = new AdapterItem(); - item.viewType = AllAppsGridAdapter.VIEW_TYPE_SEARCH_DIVIDER; - item.position = pos; - return item; - } - public static AdapterItem asMarketDivider(int pos) { AdapterItem item = new AdapterItem(); item.viewType = AllAppsGridAdapter.VIEW_TYPE_SEARCH_MARKET_DIVIDER; @@ -195,8 +188,6 @@ public class AlphabeticalAppsList { private int mNumPredictedAppsPerRow; private int mNumAppRowsInAdapter; - private boolean mHasSearchDivider = true; - public AlphabeticalAppsList(Context context) { mLauncher = Launcher.getLauncher(context); mIndexer = new AlphabeticIndexCompat(context); @@ -352,10 +343,6 @@ public class AlphabeticalAppsList { onAppsUpdated(); } - public void disableSearchDivider() { - mHasSearchDivider = false; - } - /** * Updates internals when the set of apps are updated. */ @@ -442,11 +429,6 @@ public class AlphabeticalAppsList { } } - if (mHasSearchDivider) { - // Add the search divider - mAdapterItems.add(AdapterItem.asSearchDivider(position++)); - } - // Process the predicted app components mPredictedApps.clear(); if (mPredictedAppComponents != null && !mPredictedAppComponents.isEmpty() && !hasFilter()) { |