reset playback notification large icon when content changes
This commit is contained in:
parent
6c24749ad5
commit
a4585de807
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue