diff options
Diffstat (limited to 'quickstep/src/com/android/launcher3/appprediction/AppsDividerView.java')
-rw-r--r-- | quickstep/src/com/android/launcher3/appprediction/AppsDividerView.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/quickstep/src/com/android/launcher3/appprediction/AppsDividerView.java b/quickstep/src/com/android/launcher3/appprediction/AppsDividerView.java index e8374b813c..037f7a8fea 100644 --- a/quickstep/src/com/android/launcher3/appprediction/AppsDividerView.java +++ b/quickstep/src/com/android/launcher3/appprediction/AppsDividerView.java @@ -35,9 +35,7 @@ import androidx.core.content.ContextCompat; import com.android.launcher3.R; import com.android.launcher3.allapps.FloatingHeaderRow; import com.android.launcher3.allapps.FloatingHeaderView; -import com.android.launcher3.util.OnboardingPrefs; import com.android.launcher3.util.Themes; -import com.android.launcher3.views.ActivityContext; /** * A view which shows a horizontal divider @@ -93,10 +91,7 @@ public class AppsDividerView extends View implements FloatingHeaderRow { ? R.color.all_apps_label_text_dark : R.color.all_apps_label_text); - OnboardingPrefs<?> onboardingPrefs = ActivityContext.lookupContext( - getContext()).getOnboardingPrefs(); - mShowAllAppsLabel = onboardingPrefs == null || !onboardingPrefs.hasReachedMaxCount( - ALL_APPS_VISITED_COUNT); + mShowAllAppsLabel = !ALL_APPS_VISITED_COUNT.hasReachedMax(context); } public void setup(FloatingHeaderView parent, FloatingHeaderRow[] rows, boolean tabsHidden) { |