forked from mirrors/principia
When the WebView opens a URL that is neither a principia: link nor a community-host page, it hands it to an external app with startActivity(ACTION_VIEW). On a device with no app able to open the URI that call throws ActivityNotFoundException and the activity crashes. Wrap the launch in a try/catch so an unresolvable link is logged and the WebView dialog still closes cleanly. |
||
|---|---|---|
| .. | ||
| gradle/wrapper | ||
| principia | ||
| .gitignore | ||
| build.gradle | ||
| gradle.properties | ||
| gradlew | ||
| settings.gradle | ||