Accept text shared with image on Android (#6324) (#6533)

(cherry picked from commit cd4dc9528b)

Co-authored-by: t0mm0 <dev@onairsoftware.co.uk>
This commit is contained in:
Mattermost Build 2022-08-02 17:38:52 +03:00 committed by GitHub
parent 8e4f19f3ea
commit 5c79b5152e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -167,6 +167,11 @@ public class ShareModule extends ReactContextBaseJavaModule {
map.putString("type", type);
map.putBoolean("isString", false);
items.pushMap(map);
map = Arguments.createMap();
map.putString("value", extra);
map.putBoolean("isString", true);
items.pushMap(map);
}
} else if (Intent.ACTION_SEND_MULTIPLE.equals(action)) {
ArrayList<Uri> uris = intent.getParcelableArrayListExtra(Intent.EXTRA_STREAM);