Remove old ChooserActivity from manifest

The old ChooserActivity should never be triggered and no longer passes
CTS (the intent is already superseded by the IntentResolver version which has a higher priority).

Leave a note for readers that they're likely looking at the wrong
Chooser.

Bug: 282173439
Test: Presubmits
Change-Id: I055cb044ea3bd8f5c645e2a8b7585ac682242d06
This commit is contained in:
1
2023-05-12 16:12:50 +00:00
committed by Matt Casey
parent d6181d7c2b
commit ba238643a4
2 changed files with 4 additions and 18 deletions

View File

@@ -165,9 +165,11 @@ import java.util.function.Supplier;
import java.util.stream.Collectors;
/**
* The Chooser Activity handles intent resolution specifically for sharing intents -
* for example, those generated by @see android.content.Intent#createChooser(Intent, CharSequence).
* This is the legacy ChooserActivity and is not expected to be invoked, it's only here because
* MediaAppSelectorActivity is still depending on it. The actual chooser used by the system is
* at packages/modules/IntentResolver/java/src/com/android/intentresolver/ChooserActivity.java
*
* The migration to the new package will be completed in a later release.
*/
public class ChooserActivity extends ResolverActivity implements
ChooserListAdapter.ChooserListCommunicator,

View File

@@ -7690,22 +7690,6 @@
android:defaultToDeviceProtectedStorage="true"
android:forceQueryable="true"
android:directBootAware="true">
<activity android:name="com.android.internal.app.ChooserActivity"
android:theme="@style/Theme.DeviceDefault.Chooser"
android:finishOnCloseSystemDialogs="true"
android:excludeFromRecents="true"
android:documentLaunchMode="never"
android:relinquishTaskIdentity="true"
android:configChanges="screenSize|smallestScreenSize|screenLayout|orientation|keyboard|keyboardHidden"
android:process=":ui"
android:exported="true"
android:visibleToInstantApps="true">
<intent-filter android:priority="100">
<action android:name="android.intent.action.CHOOSER" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.VOICE" />
</intent-filter>
</activity>
<activity android:name="com.android.internal.accessibility.dialog.AccessibilityShortcutChooserActivity"
android:exported="false"
android:theme="@style/Theme.DeviceDefault.Dialog.Alert.DayNight"