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