From a4585de8071c77cd7adcf49451b66fad56cff719 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Fri, 5 Jun 2020 09:40:22 +0100 Subject: [PATCH] reset playback notification large icon when content changes --- app/src/main/java/io/lbry/browser/MainActivity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/io/lbry/browser/MainActivity.java b/app/src/main/java/io/lbry/browser/MainActivity.java index 32bbca06..8e88f24c 100644 --- a/app/src/main/java/io/lbry/browser/MainActivity.java +++ b/app/src/main/java/io/lbry/browser/MainActivity.java @@ -496,6 +496,8 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener stopExoplayer(); getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); nowPlayingClaim = null; + nowPlayingClaimUrl = null; + nowPlayingClaimBitmap = null; findViewById(R.id.global_now_playing_card).setVisibility(View.GONE); } }); @@ -929,6 +931,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener stopExoplayer(); nowPlayingClaim = null; nowPlayingClaimUrl = null; + nowPlayingClaimBitmap = null; } appStarted = false; @@ -2749,6 +2752,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener public void clearNowPlayingClaim() { nowPlayingClaim = null; nowPlayingClaimUrl = null; + nowPlayingClaimBitmap = null; findViewById(R.id.global_now_playing_card).setVisibility(View.GONE); ((TextView) findViewById(R.id.global_now_playing_title)).setText(null); ((TextView) findViewById(R.id.global_now_playing_channel_title)).setText(null);