reset playback notification large icon when content changes

This commit is contained in:
Akinwale Ariwodola 2020-06-05 09:40:22 +01:00
parent 6c24749ad5
commit a4585de807

View file

@ -496,6 +496,8 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
stopExoplayer(); stopExoplayer();
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
nowPlayingClaim = null; nowPlayingClaim = null;
nowPlayingClaimUrl = null;
nowPlayingClaimBitmap = null;
findViewById(R.id.global_now_playing_card).setVisibility(View.GONE); findViewById(R.id.global_now_playing_card).setVisibility(View.GONE);
} }
}); });
@ -929,6 +931,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
stopExoplayer(); stopExoplayer();
nowPlayingClaim = null; nowPlayingClaim = null;
nowPlayingClaimUrl = null; nowPlayingClaimUrl = null;
nowPlayingClaimBitmap = null;
} }
appStarted = false; appStarted = false;
@ -2749,6 +2752,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
public void clearNowPlayingClaim() { public void clearNowPlayingClaim() {
nowPlayingClaim = null; nowPlayingClaim = null;
nowPlayingClaimUrl = null; nowPlayingClaimUrl = null;
nowPlayingClaimBitmap = null;
findViewById(R.id.global_now_playing_card).setVisibility(View.GONE); 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_title)).setText(null);
((TextView) findViewById(R.id.global_now_playing_channel_title)).setText(null); ((TextView) findViewById(R.id.global_now_playing_channel_title)).setText(null);