From aab648c3cf891436805d401e0a87113703f82173 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Fri, 2 Oct 2020 12:39:37 +0100 Subject: [PATCH] Fix errors with deep link handling (#1019) --- app/src/main/java/io/lbry/browser/MainActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/io/lbry/browser/MainActivity.java b/app/src/main/java/io/lbry/browser/MainActivity.java index d36fd08c..fceb7dda 100644 --- a/app/src/main/java/io/lbry/browser/MainActivity.java +++ b/app/src/main/java/io/lbry/browser/MainActivity.java @@ -1041,7 +1041,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener fragment instanceof LibraryFragment || fragment instanceof SearchFragment; findViewById(R.id.floating_balance_main_container).setVisibility(!canShowFloatingBalance || inFullscreenMode ? View.INVISIBLE : View.VISIBLE); - if (!(fragment instanceof FileViewFragment) && !(fragment instanceof ShuffleFragment) && !inFullscreenMode) { + if (!(fragment instanceof FileViewFragment) && !(fragment instanceof ShuffleFragment) && !inFullscreenMode && nowPlayingClaim != null) { findViewById(R.id.global_now_playing_card).setVisibility(View.VISIBLE); } /*if (!Lbry.SDK_READY && !inFullscreenMode) { @@ -2854,9 +2854,9 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener try { LbryUri uri = LbryUri.parse(url); if (uri.isChannel()) { - openChannelUrl(url); + openChannelUrl(url.startsWith(LbryUri.PROTO_DEFAULT) ? url : uri.toString()); } else { - openFileUrl(url); + openFileUrl(url.startsWith(LbryUri.PROTO_DEFAULT) ? url : uri.toString()); } } catch (LbryUriException ex) { // pass