From c996f37829fbe06a9f700b3bd1cc797ff1fda6c7 Mon Sep 17 00:00:00 2001 From: Mark Renouf Date: Tue, 11 Jun 2024 14:49:54 -0400 Subject: Do not auto-dismiss on package change with no targets This behavior is obsolete and confusing, removing this path. Package changes will still reload the resultsm, but no dismiss will happen when there are no results. Bug: 334179669 Flag: EXEMPT bugfix Test: Manually by sending an intent with no matches and installing a package while the Share UI is open. Change-Id: Ic654794baf14d039a6155e37b9d3ef0b61b10f71 --- java/src/com/android/intentresolver/ChooserActivity.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'java/src') diff --git a/java/src/com/android/intentresolver/ChooserActivity.java b/java/src/com/android/intentresolver/ChooserActivity.java index 670512ac..a5516fde 100644 --- a/java/src/com/android/intentresolver/ChooserActivity.java +++ b/java/src/com/android/intentresolver/ChooserActivity.java @@ -1196,13 +1196,9 @@ public class ChooserActivity extends Hilt_ChooserActivity implements @Override // ResolverListCommunicator public final void onHandlePackagesChanged(ResolverListAdapter listAdapter) { - if (!mChooserMultiProfilePagerAdapter.onHandlePackagesChanged( + mChooserMultiProfilePagerAdapter.onHandlePackagesChanged( (ChooserListAdapter) listAdapter, - mProfileAvailability.getWaitingToEnableProfile())) { - // We no longer have any items... just finish the activity. - Log.d(TAG, "onHandlePackagesChanged(): returned false, finishing"); - finish(); - } + mProfileAvailability.getWaitingToEnableProfile()); } final Option optionForChooserTarget(TargetInfo target, int index) { -- cgit v1.2.3-59-g8ed1b