Skip to content

Commit 7062072

Browse files
authored
Merge pull request #1228 from DimensionDev/bugfix/urihandler_crash
catch uri handler crash
2 parents c0acd74 + 847e42b commit 7062072

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/src/main/java/dev/dimension/flare/ui/common/ProxyUriHandler.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ internal class ProxyUriHandler(
1010
if (uri.startsWith("flare://")) {
1111
navigate.invoke(uri)
1212
} else {
13-
actualUriHandler.openUri(uri)
13+
// some crashes from firebase indicate that this can throw
14+
runCatching {
15+
actualUriHandler.openUri(uri)
16+
}
1417
}
1518
}
1619
}

0 commit comments

Comments
 (0)