mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 17:06:49 +00:00
Show discovery tip for hybrid hotseat
Doc: go/hybrid-hotseat-tips Issue 157683315: for fully populated hotseat, count returns to home screen and show discovery tip if Tip action was not tapped. Issue 158301717: Don't use cached items if client has predicted items. Test: Manual Change-Id: I4747a1148caa62a6262fb6592d5185bdf216ede6
This commit is contained in:
@@ -37,13 +37,14 @@ public class OnboardingPrefs<T extends Launcher> {
|
||||
public static final String HOME_BOUNCE_COUNT = "launcher.home_bounce_count";
|
||||
public static final String SHELF_BOUNCE_COUNT = "launcher.shelf_bounce_count";
|
||||
public static final String ALL_APPS_COUNT = "launcher.all_apps_count";
|
||||
public static final String HOTSEAT_DISCOVERY_TIP_COUNT = "launcher.hotseat_discovery_tip_count";
|
||||
|
||||
/**
|
||||
* Events that either have happened or have not (booleans).
|
||||
*/
|
||||
@StringDef(value = {
|
||||
HOME_BOUNCE_SEEN,
|
||||
SHELF_BOUNCE_SEEN,
|
||||
SHELF_BOUNCE_SEEN
|
||||
})
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
public @interface EventBoolKey {}
|
||||
@@ -55,6 +56,7 @@ public class OnboardingPrefs<T extends Launcher> {
|
||||
HOME_BOUNCE_COUNT,
|
||||
SHELF_BOUNCE_COUNT,
|
||||
ALL_APPS_COUNT,
|
||||
HOTSEAT_DISCOVERY_TIP_COUNT
|
||||
})
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
public @interface EventCountKey {}
|
||||
@@ -65,6 +67,7 @@ public class OnboardingPrefs<T extends Launcher> {
|
||||
maxCounts.put(HOME_BOUNCE_COUNT, 3);
|
||||
maxCounts.put(SHELF_BOUNCE_COUNT, 3);
|
||||
maxCounts.put(ALL_APPS_COUNT, 5);
|
||||
maxCounts.put(HOTSEAT_DISCOVERY_TIP_COUNT, 5);
|
||||
MAX_COUNTS = Collections.unmodifiableMap(maxCounts);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user