Merge "Forcefully convert to basic Intent before calling PM API." into tm-dev am: 4220511d7e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18232666 Change-Id: Ia2c2957ef2cd40439daf5b62b7ef489c563bfa21 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -144,7 +144,9 @@ public class ChooserListAdapter extends ResolverListAdapter {
|
||||
}
|
||||
}
|
||||
if (ai == null) {
|
||||
ri = packageManager.resolveActivity(ii, PackageManager.MATCH_DEFAULT_ONLY);
|
||||
// Because of AIDL bug, resolveActivity can't accept subclasses of Intent.
|
||||
final Intent rii = (ii.getClass() == Intent.class) ? ii : new Intent(ii);
|
||||
ri = packageManager.resolveActivity(rii, PackageManager.MATCH_DEFAULT_ONLY);
|
||||
ai = ri != null ? ri.activityInfo : null;
|
||||
}
|
||||
if (ai == null) {
|
||||
|
||||
Reference in New Issue
Block a user