Issue #661 - Avoid the device to sleep when watching a fullscreen video.

This commit is contained in:
stom79 2018-12-20 18:07:05 +01:00
parent 51b4cfef34
commit 4f784b2b31
1 changed files with 2 additions and 2 deletions

View File

@ -168,8 +168,8 @@ public class PeertubeActivity extends BaseActivity implements OnRetrievePeertube
public void change(){
if(fullscreen == FullScreenMediaController.fullscreen.ON){
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN |
WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
Objects.requireNonNull(getSupportActionBar()).hide();
peertube_information_container.setVisibility(View.GONE);
}else{