Prevent error when user has no email client.

Fixes #10212

Thanks to @ali-khannakhjavani

Co-authored-by: ali-khannakhjavani
This commit is contained in:
Greyson Parrelli 2020-11-30 18:47:57 -05:00
parent dda51bf367
commit bcfbed9b3f
2 changed files with 2 additions and 1 deletions

View file

@ -156,7 +156,7 @@ public class CommunicationActions {
intent.putExtra(Intent.EXTRA_SUBJECT, Util.emptyIfNull(subject));
intent.putExtra(Intent.EXTRA_TEXT, Util.emptyIfNull(body));
context.startActivity(intent);
context.startActivity(Intent.createChooser(intent, context.getString(R.string.CommunicationActions_send_email)));
}
/**

View file

@ -173,6 +173,7 @@
<!-- CommunicationActions -->
<string name="CommunicationActions_no_browser_found">No web browser found.</string>
<string name="CommunicationActions_no_email_app_found">No email app found.</string>
<string name="CommunicationActions_send_email">Send email</string>
<string name="CommunicationActions_a_cellular_call_is_already_in_progress">A cellular call is already in progress.</string>
<string name="CommunicationActions_start_video_call">Start video call?</string>
<string name="CommunicationActions_start_voice_call">Start voice call?</string>