From 9109b81a95870c5f5f0f936932df2220003e8148 Mon Sep 17 00:00:00 2001 From: Alex Chau Date: Wed, 21 Aug 2024 12:28:03 +0100 Subject: [PATCH] Reset mTopRowIdSet in applyLoadPlan - All taskViewIds become obsolete after removing and re-adding, so we'll need to reset mTopRowIdSet when removing all taskViews - OverviewActionsView.updateActionButtonsVisibility can be called before updateDimension (where mDp is set), so a null check is necessary - Fixed TestStaibilityRule failing when running FallbackRecentsTest alone. FallbackRecentsTest runs with 3P Launcher, in that case launcherPackageName is our test activity, and launcherVersion can be null. This can only occur in a local run, thus return LOCAL in this case. Fix: 355042336 Test: FallbackRecentsTest and manually testing dismiss Flag: EXEMPT BUG_FIX Change-Id: I9125ea38a567deb0d3028e7d7407397d1dc06ade --- .../src/com/android/quickstep/views/OverviewActionsView.java | 4 +++- quickstep/src/com/android/quickstep/views/RecentsView.java | 3 +++ .../com/android/launcher3/util/rule/TestStabilityRule.java | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/views/OverviewActionsView.java b/quickstep/src/com/android/quickstep/views/OverviewActionsView.java index d9468c7038..4a2be2adf7 100644 --- a/quickstep/src/com/android/quickstep/views/OverviewActionsView.java +++ b/quickstep/src/com/android/quickstep/views/OverviewActionsView.java @@ -274,7 +274,9 @@ public class OverviewActionsView 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 = [" diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index 53e6e72860..2d011e6484 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -1830,6 +1830,9 @@ public abstract class RecentsView