mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-25 17:37:57 +00:00
Prevent error when user has no email client.
Fixes #10212 Thanks to @ali-khannakhjavani Co-authored-by: ali-khannakhjavani
This commit is contained in:
@@ -156,7 +156,7 @@ public class CommunicationActions {
|
|||||||
intent.putExtra(Intent.EXTRA_SUBJECT, Util.emptyIfNull(subject));
|
intent.putExtra(Intent.EXTRA_SUBJECT, Util.emptyIfNull(subject));
|
||||||
intent.putExtra(Intent.EXTRA_TEXT, Util.emptyIfNull(body));
|
intent.putExtra(Intent.EXTRA_TEXT, Util.emptyIfNull(body));
|
||||||
|
|
||||||
context.startActivity(intent);
|
context.startActivity(Intent.createChooser(intent, context.getString(R.string.CommunicationActions_send_email)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -173,6 +173,7 @@
|
|||||||
<!-- CommunicationActions -->
|
<!-- CommunicationActions -->
|
||||||
<string name="CommunicationActions_no_browser_found">No web browser found.</string>
|
<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_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_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_video_call">Start video call?</string>
|
||||||
<string name="CommunicationActions_start_voice_call">Start voice call?</string>
|
<string name="CommunicationActions_start_voice_call">Start voice call?</string>
|
||||||
|
Reference in New Issue
Block a user