From 514979dd2dc50543f28553ccf1713e977af8c393 Mon Sep 17 00:00:00 2001 From: Anushree Ganjam Date: Tue, 24 May 2022 00:44:55 +0000 Subject: [PATCH] Revert "Add "incrementEventCountBy" function to OnboardingPrefs." Revert submission 18500283-dismissEduCard Reason for revert: Reverting because of build failures. Reverted Changes: I727cefb70:Save the value to sharedPreference When edu card i... I180ab3bd6:Add "incrementEventCountBy" function to Onboarding... Change-Id: Ia39781c78776a629d4678c78dd4ca75f49abbb6d --- .../android/launcher3/util/OnboardingPrefs.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/com/android/launcher3/util/OnboardingPrefs.java b/src/com/android/launcher3/util/OnboardingPrefs.java index 64aeceb359..c1e4fa889c 100644 --- a/src/com/android/launcher3/util/OnboardingPrefs.java +++ b/src/com/android/launcher3/util/OnboardingPrefs.java @@ -140,19 +140,4 @@ public class OnboardingPrefs { mSharedPrefs.edit().putInt(eventKey, count).apply(); return hasReachedMaxCount(count, eventKey); } - - /** - * Add "incCountBy" to the given event count, if we haven't already reached the max count. - * - * @return Whether we have now reached the max count. - */ - public boolean incrementEventCountBy(int incCountBy, @EventCountKey String eventKey) { - int count = getCount(eventKey); - if (hasReachedMaxCount(count, eventKey)) { - return true; - } - count += incCountBy; - mSharedPrefs.edit().putInt(eventKey, count).apply(); - return hasReachedMaxCount(count, eventKey); - } }