Merge "Reset mTopRowIdSet in applyLoadPlan" into main

This commit is contained in:
Alex Chau
2024-08-22 09:49:27 +00:00
committed by Android (Google) Code Review
3 changed files with 9 additions and 1 deletions
@@ -274,7 +274,9 @@ public class OverviewActionsView<T extends OverlayUICallbacks> extends FrameLayo
}
private void updateActionButtonsVisibility() {
assert mDp != null;
if (mDp == null) {
return;
}
boolean showSingleTaskActions = !mIsGroupedTask;
boolean showGroupActions = mIsGroupedTask && mDp.isTablet && mCanSaveAppPair;
Log.d(TAG, "updateActionButtonsVisibility() called: showSingleTaskActions = ["
@@ -1838,6 +1838,9 @@ public abstract class RecentsView<
// the new set of views are added
int previousCurrentPage = mCurrentPage;
int previousFocusedPage = indexOfChild(getFocusedChild());
// TaskIds will no longer be valid after remove and re-add, clearing mTopRowIdSet.
mAnyTaskHasBeenDismissed = false;
mTopRowIdSet.clear();
removeAllViews();
// If we are entering Overview as a result of initiating a split from somewhere else
@@ -109,6 +109,9 @@ public class TestStabilityRule implements TestRule {
getPackageManager().
getPackageInfo(launcherPackageName, 0)
.versionName;
if (launcherVersion == null) {
return LOCAL;
}
} catch (PackageManager.NameNotFoundException e) {
throw new RuntimeException(e);
}