Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c505075b authored by Song Hu's avatar Song Hu Committed by Automerger Merge Worker
Browse files

Merge "ChooserActivity populates intentFilter mimeType with intent.getType()...

Merge "ChooserActivity populates intentFilter mimeType with intent.getType() prior to intent.getDataString(). This fixes the issue in screenshot sharing that no or much less than usual direct share recommendations surface." into tm-dev am: 6c90bbe1 am: 04e773c3 am: 81c8f400

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18213842



Change-Id: Ibfa3f9af3c0d61d5c9daa8472234606c03e6b0d4
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 601c75d5 81c8f400
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1874,10 +1874,10 @@ public class ChooserActivity extends ResolverActivity implements
        try {
            final Intent intent = getTargetIntent();
            String dataString = intent.getDataString();
            if (intent.getType() == null) {
                if (!TextUtils.isEmpty(dataString)) {
                    return new IntentFilter(intent.getAction(), dataString);
                }
            if (intent.getType() == null) {
                Log.e(TAG, "Failed to get target intent filter: intent data and type are null");
                return null;
            }