Loading core/java/android/content/Intent.java +14 −11 Original line number Diff line number Diff line Loading @@ -6653,11 +6653,12 @@ public class Intent implements Parcelable, Cloneable { final String action = getAction(); if (ACTION_CHOOSER.equals(action)) { try { // Inspect target intent to see if we need to migrate final Intent target = getParcelableExtra(EXTRA_INTENT); if (target.migrateExtraStreamToClipData()) { // Since we migrated in child, we need to promote ClipData and // flags to ourselves to grant. if (target != null && target.migrateExtraStreamToClipData()) { // Since we migrated in child, we need to promote ClipData // and flags to ourselves to grant. setClipData(target.getClipData()); addFlags(target.getFlags() & (FLAG_GRANT_READ_URI_PERMISSION | FLAG_GRANT_WRITE_URI_PERMISSION)); Loading @@ -6665,6 +6666,8 @@ public class Intent implements Parcelable, Cloneable { } else { return false; } } catch (ClassCastException e) { } } else if (ACTION_SEND.equals(action)) { try { Loading Loading
core/java/android/content/Intent.java +14 −11 Original line number Diff line number Diff line Loading @@ -6653,11 +6653,12 @@ public class Intent implements Parcelable, Cloneable { final String action = getAction(); if (ACTION_CHOOSER.equals(action)) { try { // Inspect target intent to see if we need to migrate final Intent target = getParcelableExtra(EXTRA_INTENT); if (target.migrateExtraStreamToClipData()) { // Since we migrated in child, we need to promote ClipData and // flags to ourselves to grant. if (target != null && target.migrateExtraStreamToClipData()) { // Since we migrated in child, we need to promote ClipData // and flags to ourselves to grant. setClipData(target.getClipData()); addFlags(target.getFlags() & (FLAG_GRANT_READ_URI_PERMISSION | FLAG_GRANT_WRITE_URI_PERMISSION)); Loading @@ -6665,6 +6666,8 @@ public class Intent implements Parcelable, Cloneable { } else { return false; } } catch (ClassCastException e) { } } else if (ACTION_SEND.equals(action)) { try { Loading