* Open youtube links directly from search (fixes #35)
This commit is contained in:
parent
5e66a66111
commit
5b8ff28556
3 changed files with 61 additions and 11 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue