Adress requested changes and try some cleanup in handleUrl method of InternalUrlsHandler class

This commit is contained in:
TiA4f8R 2021-04-03 14:46:30 +02:00
parent 2702700d10
commit a79badd783
No known key found for this signature in database
GPG key ID: E6D3E7F5949450DD
4 changed files with 34 additions and 34 deletions

View file

@ -375,6 +375,8 @@ public class MissionAdapter extends Adapter<ViewHolder> implements Handler.Callb
final Intent intent = new Intent(Intent.ACTION_CHOOSER);
intent.putExtra(Intent.EXTRA_INTENT, shareIntent);
// unneeded to set a title to the chooser on Android P and higher because the system
// ignores this title on these versions
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.O_MR1) {
intent.putExtra(Intent.EXTRA_TITLE, mContext.getString(R.string.share_dialog_title));
}