Fix dialog appears when url being consumed

This commit is contained in:
tarsin authored and GitHub committed 2023-05-08 08:44:43 +08:00
1 parent 8efea01d78
commit 9da687f168
1 file changed
+1 -1
@@ -158,7 +158,7 @@ class MainActivity : EhActivity() {
val action = intent.action
if (Intent.ACTION_VIEW == action) {
val uri = intent.data ?: return false
navController.navWithUrl(uri.toString())
return navController.navWithUrl(uri.toString())
} else if (Intent.ACTION_SEND == action) {
val type = intent.type
if ("text/plain" == type) {