mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-24 00:50:32 +00:00
resolved issues
This commit is contained in:
parent
a6fcb70d12
commit
92ee51b8db
@ -341,6 +341,7 @@ public final class BackgroundPlayer extends Service {
|
||||
@Override
|
||||
public void handleIntent(final Intent intent) {
|
||||
super.handleIntent(intent);
|
||||
|
||||
resetNotification();
|
||||
if (bigNotRemoteView != null)
|
||||
bigNotRemoteView.setProgressBar(R.id.notificationProgressBar, 100, 0, false);
|
||||
|
@ -332,7 +332,7 @@ public abstract class BasePlayer implements
|
||||
if (playQueueAdapter != null) playQueueAdapter.dispose();
|
||||
playQueueAdapter = new PlayQueueAdapter(context, playQueue);
|
||||
|
||||
if (isMuted) simpleExoPlayer.setVolume(0);
|
||||
simpleExoPlayer.setVolume(isMuted ? 0 : 1);
|
||||
}
|
||||
|
||||
public void destroyPlayer() {
|
||||
|
@ -401,12 +401,7 @@ public final class MainVideoPlayer extends AppCompatActivity
|
||||
}
|
||||
|
||||
protected void setMuteButton(final ImageButton muteButton, final boolean isMuted) {
|
||||
if (isMuted) {
|
||||
muteButton.setColorFilter(ContextCompat.getColor(getApplicationContext(), R.color.white));
|
||||
} else {
|
||||
muteButton.setColorFilter(ContextCompat.getColor(getApplicationContext(), R.color.gray));
|
||||
|
||||
}
|
||||
muteButton.setColorFilter(ContextCompat.getColor(getApplicationContext(), isMuted ? R.color.white : R.color.gray));
|
||||
}
|
||||
|
||||
|
||||
|
@ -687,11 +687,6 @@ public abstract class ServicePlayerActivity extends AppCompatActivity
|
||||
}
|
||||
|
||||
private void onMaybeMuteChanged(){
|
||||
if (player.isMuted()) {
|
||||
muteButton.setColorFilter(ContextCompat.getColor(getApplicationContext(), R.color.white));
|
||||
}
|
||||
else {
|
||||
muteButton.setColorFilter(ContextCompat.getColor(getApplicationContext(), R.color.gray));
|
||||
}
|
||||
muteButton.setColorFilter(ContextCompat.getColor(getApplicationContext(), player.isMuted() ? R.color.white : R.color.gray));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user