Issue #661 - Avoid the device to sleep when watching a fullscreen video.
This commit is contained in:
parent
51b4cfef34
commit
4f784b2b31
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue