Simplification

pull/160/head
M66B 6 years ago
parent 534554bd10
commit 55f1a2f6b7

@ -191,10 +191,7 @@ public class Helper {
static void view(Context context, Uri uri, boolean browse) { static void view(Context context, Uri uri, boolean browse) {
Log.i("View=" + uri); Log.i("View=" + uri);
if (!hasCustomTabs(context, uri)) if (browse || !hasCustomTabs(context, uri)) {
browse = true;
if (browse) {
Intent view = new Intent(Intent.ACTION_VIEW, uri); Intent view = new Intent(Intent.ACTION_VIEW, uri);
context.startActivity(getChooser(context, view)); context.startActivity(getChooser(context, view));
} else { } else {

Loading…
Cancel
Save