Open youtube links directly from search (fixes #35) (#692)

* Open youtube links directly from search (fixes #35)
This commit is contained in:
Felix Ableitner 2017-09-16 02:27:39 +09:00 committed by Christian Schabesberger
parent 5e66a66111
commit 5b8ff28556
3 changed files with 61 additions and 11 deletions

View file

@ -43,9 +43,8 @@ public class RouterActivity extends AppCompatActivity {
}
protected void handleUrl(String url) {
try {
NavigationHelper.openByLink(this, url);
} catch (Exception e) {
boolean success = NavigationHelper.openByLink(this, url);
if (!success) {
Toast.makeText(this, R.string.url_not_supported_toast, Toast.LENGTH_LONG).show();
}