Merge "Revert "Make sure TAPL waits for Launcher activity to stop each time it stops"" into main

This commit is contained in:
Cliff Wang
2024-02-05 08:21:54 +00:00
committed by Android (Google) Code Review
6 changed files with 1 additions and 52 deletions
-10
View File
@@ -411,8 +411,6 @@ public class Launcher extends StatefulActivity<LauncherState>
private final SettingsCache.OnChangeListener mNaturalScrollingChangedListener =
enabled -> mIsNaturalScrollingEnabled = enabled;
private int mActivityStopCount; // Used only by tests
public static Launcher getLauncher(Context context) {
return fromContext(context);
}
@@ -1054,18 +1052,10 @@ public class Launcher extends StatefulActivity<LauncherState>
mAppWidgetHolder.setActivityStarted(false);
NotificationListener.removeNotificationsChangedListener(getPopupDataProvider());
FloatingIconView.resetIconLoadResult();
++mActivityStopCount;
AccessibilityManagerCompat.sendTestProtocolEventToTest(
this, LAUNCHER_ACTIVITY_STOPPED_MESSAGE);
}
/** Return activity stop count and reset it. Used only by tests. */
public int getAndResetActivityStopCount() {
final int activityStopCount = mActivityStopCount;
mActivityStopCount = 0;
return activityStopCount;
}
@Override
protected void onStart() {
TraceHelper.INSTANCE.beginSection(ON_START_EVT);