From 2e84401d810ef186e4d10ef813798a4b54a711d0 Mon Sep 17 00:00:00 2001 From: Felix Date: Sat, 15 Apr 2017 19:57:35 +0200 Subject: [PATCH] prevent AndroidTV from starting Screensaver --- .../java/de/nicidienase/chaosflix/activities/PlayerActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/de/nicidienase/chaosflix/activities/PlayerActivity.java b/app/src/main/java/de/nicidienase/chaosflix/activities/PlayerActivity.java index c3b2c87d..5aac82cf 100644 --- a/app/src/main/java/de/nicidienase/chaosflix/activities/PlayerActivity.java +++ b/app/src/main/java/de/nicidienase/chaosflix/activities/PlayerActivity.java @@ -60,6 +60,7 @@ public class PlayerActivity extends AbstractServiceConnectedAcitivty super.onCreate(savedInstanceState); setContentView(R.layout.activity_playback); ButterKnife.bind(this); + mSurfaceView.setKeepScreenOn(true); mPlaybackControllFragment = (OverlayFragment) getFragmentManager().findFragmentById(R.id.playback_controls_fragment);