Count launching the same app as an app launch for Quickstep onboarding

Bug: 70180942
Test: Manual test
Change-Id: Ib4fafa2697206ef710a4ce975309fb7a8792b4cf
This commit is contained in:
Tracy Zhou
2018-05-07 17:08:56 -07:00
parent a914cf0aff
commit 6ef657ba57

View File

@@ -93,7 +93,6 @@ public class RecentsOnboarding {
private boolean mOverviewProxyListenerRegistered;
private boolean mTaskListenerRegistered;
private boolean mLayoutAttachedToWindow;
private int mLastTaskId;
private boolean mHasDismissedSwipeUpTip;
private boolean mHasDismissedQuickScrubTip;
private int mNumAppsLaunchedSinceSwipeUpTipDismiss;
@@ -111,14 +110,8 @@ public class RecentsOnboarding {
hide(true);
return;
}
if (info.id == mLastTaskId) {
// We only count launches that go to a new task.
return;
}
int activityType = info.configuration.windowConfiguration.getActivityType();
if (activityType == ACTIVITY_TYPE_STANDARD) {
mLastTaskId = info.id;
boolean alreadySeenSwipeUpOnboarding = hasSeenSwipeUpOnboarding();
boolean alreadySeenQuickScrubsOnboarding = hasSeenQuickScrubOnboarding();
if (alreadySeenSwipeUpOnboarding && alreadySeenQuickScrubsOnboarding) {