try harder at sending email intent, fixes a glitch on Android 13
This commit is contained in:
parent
f80a1e1ad8
commit
f97f0239b7
1 changed files with 6 additions and 1 deletions
|
@ -158,7 +158,12 @@ class AboutActivity : BaseSimpleActivity() {
|
||||||
try {
|
try {
|
||||||
startActivity(emailIntent)
|
startActivity(emailIntent)
|
||||||
} catch (e: ActivityNotFoundException) {
|
} catch (e: ActivityNotFoundException) {
|
||||||
toast(R.string.no_email_client_found)
|
val chooser = createChooser(emailIntent, getString(R.string.send_email))
|
||||||
|
try {
|
||||||
|
startActivity(chooser)
|
||||||
|
} catch (e: Exception) {
|
||||||
|
toast(R.string.no_email_client_found)
|
||||||
|
}
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
showErrorToast(e)
|
showErrorToast(e)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue