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) new ShareCompat.IntentBuilder(context)
.setType(attachment.getMimeType()) .setType(attachment.getMimeType())
.addStream(uri) .addStream(uri)
.setChooserTitle(R.string.title_select_app)
.startChooser(); .startChooser();
return true; return true;

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

Loading…
Cancel
Save