1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-24 09:00:31 +00:00
This commit is contained in:
Kartikey Kushwaha 2018-06-09 01:01:13 +05:30
parent bb0d8ad58a
commit 981174a490

View File

@ -662,7 +662,8 @@ public final class PopupVideoPlayer extends Service {
videoPlayPause.setBackgroundResource(R.drawable.ic_pause_white); videoPlayPause.setBackgroundResource(R.drawable.ic_pause_white);
lockManager.acquireWifiAndCpu(); lockManager.acquireWifiAndCpu();
hideControls(DEFAULT_CONTROLS_DURATION, DEFAULT_CONTROLS_HIDE_TIME); windowLayoutParams.flags = WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON;
windowManager.updateViewLayout(playerImpl.getRootView(), windowLayoutParams);
} }
@Override @Override
@ -677,6 +678,9 @@ public final class PopupVideoPlayer extends Service {
updateNotification(R.drawable.ic_play_arrow_white); updateNotification(R.drawable.ic_play_arrow_white);
videoPlayPause.setBackgroundResource(R.drawable.ic_play_arrow_white); videoPlayPause.setBackgroundResource(R.drawable.ic_play_arrow_white);
lockManager.releaseWifiAndCpu(); lockManager.releaseWifiAndCpu();
windowLayoutParams.flags = 0;
windowManager.updateViewLayout(playerImpl.getRootView(), windowLayoutParams);
} }
@Override @Override