Added sharesheet chooser titles

pull/210/head
M66B 2 years ago
parent 6982b635ae
commit 3bfbb658b2

@ -275,6 +275,7 @@ public class AdapterAttachment extends RecyclerView.Adapter<AdapterAttachment.Vi
new ShareCompat.IntentBuilder(context)
.setType(attachment.getMimeType())
.addStream(uri)
.setChooserTitle(R.string.title_select_app)
.startChooser();
return true;

@ -3987,10 +3987,11 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
ShareCompat.IntentBuilder shareIntentBuilder = new ShareCompat.IntentBuilder(context);
shareIntentBuilder.setType("image/*");
for (Uri uri: uris) {
shareIntentBuilder.addStream(uri);
}
shareIntentBuilder.startChooser();
for (Uri uri : uris)
shareIntentBuilder.addStream(uri);
shareIntentBuilder
.setChooserTitle(R.string.title_select_app)
.startChooser();
}
@Override

Loading…
Cancel
Save