Fix dialog appears when url being consumed
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user