This repository has been archived by the owner on Jun 9, 2023. It is now read-only.
forked from saket/Dank
-
Notifications
You must be signed in to change notification settings - Fork 36
Trying to open page in external browser might result in crash #108
Labels
Milestone
Comments
Also can happen here: Dawn/app/src/main/java/me/saket/dank/ui/webview/ChromeCustomTabsForwardingActivity.java Line 43 in 77a6679
|
Has this been resolved? If not, I can pick it up |
@SubhrajyotiSen It has not been fixed by anyone yet. Feel free to give it a try. |
Tunous
pushed a commit
that referenced
this issue
May 4, 2020
msfjarvis
added a commit
to msfjarvis/Dawn
that referenced
this issue
Aug 5, 2020
…jarvis/swipe-gesture-icon-position' into features * msfjarvis/multiple_accounts: (24 commits) Adds multiple accounts support Prepare next version Update changelog for 0.9.1 (Tunous#198) Force logout all users (Tunous#196) Handle exceptions while opening a browser (Tunous#108) (Tunous#193) Prevent selection of negative ranges in SelectionLimitingTextView (fixes Tunous#190) (Tunous#194) Prepare next version Release 0.9.0 (Tunous#184) Release workflow (Tunous#185) Fix image loading issues due to http urls (Tunous#183) Selftext selection (Tunous#178) Submission title selection (Tunous#182) Update changelog with missed changes Wrap comment byline when it is too long to fit in one line (Tunous#145) Revert "Run Debug workflow only on push" Upgrade to Gradle 6.3 and add checksum field for F-Droid (Tunous#180) Run Debug workflow only on push Upgrade Gradle to 6.2.1 (Tunous#152) Use GitHub Actions (#72) Switch to on-device link unfurler (Tunous#138) ... * msfjarvis/swipe-gesture-icon-position: (26 commits) Return false to keep the touch flow going Make the gestures' icons follow touch event position on Y Swipe Actions' icons at same level as touch event Prepare next version Update changelog for 0.9.1 (Tunous#198) Force logout all users (Tunous#196) Handle exceptions while opening a browser (Tunous#108) (Tunous#193) Prevent selection of negative ranges in SelectionLimitingTextView (fixes Tunous#190) (Tunous#194) Prepare next version Release 0.9.0 (Tunous#184) Release workflow (Tunous#185) Fix image loading issues due to http urls (Tunous#183) Selftext selection (Tunous#178) Submission title selection (Tunous#182) Update changelog with missed changes Wrap comment byline when it is too long to fit in one line (Tunous#145) Revert "Run Debug workflow only on push" Upgrade to Gradle 6.3 and add checksum field for F-Droid (Tunous#180) Run Debug workflow only on push Upgrade Gradle to 6.2.1 (Tunous#152) ...
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
Precondition: A user has no installed browser
When attempting to open page in external browser Dawn crashes.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Most likely an error message telling the user that no browser was found should be displayed.
Hints for fixing
The issue described here is caused by the following line:
Dawn/app/src/main/java/me/saket/dank/ui/webview/WebViewActivity.java
Line 117 in 77a6679
In this case
ActivityNotFoundException
exception is thrown which crashes the app. The issue can occur everywhere where intent fromIntents.createForOpeningUrl
is passed toContext.startActivity
. We should instead check whether the created intent can be opened or handle the exception and inform the user about the problem.The text was updated successfully, but these errors were encountered: