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 e05349756a..b10aa13cea 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -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 diff --git a/tests/multivalentTests/src/com/android/launcher3/util/rule/TestStabilityRule.java b/tests/multivalentTests/src/com/android/launcher3/util/rule/TestStabilityRule.java index 909aabd248..ad2d8c2413 100644 --- a/tests/multivalentTests/src/com/android/launcher3/util/rule/TestStabilityRule.java +++ b/tests/multivalentTests/src/com/android/launcher3/util/rule/TestStabilityRule.java @@ -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); }