Skip to content

Commit

Permalink
Fix mailto links not opening a mail editor on Android (#6887)
Browse files Browse the repository at this point in the history
Closes #6873.
  • Loading branch information
rezbyte committed Apr 26, 2024
1 parent 5125168 commit 261c27a
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,13 @@ class MainActivity : FragmentActivity() {
)
OPEN_USER_MAILBOX_ACTION -> openMailbox(intent)
OPEN_CALENDAR_ACTION -> openCalendar(intent)
Intent.ACTION_VIEW -> view(intent)
Intent.ACTION_VIEW -> {
when (intent.scheme) {
"mailto" -> share(intent)
"file" -> view(intent)
"content" -> view(intent)
}
}
}
}
}
Expand Down

0 comments on commit 261c27a

Please sign in to comment.