try harder at sending email intent, fixes a glitch on Android 13

This commit is contained in:
tibbi 2023-01-20 17:00:24 +01:00
parent f80a1e1ad8
commit f97f0239b7

View file

@ -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)
} }