diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2014-03-04 22:26:44 +0100 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2014-03-04 22:26:44 +0100 |
commit | 1b7c5f492786140e5b1a519436cdb42cf32f73c9 (patch) | |
tree | 189a9cb5d57bb731fc5c96900428f35be65c6f4d /src | |
parent | 132d3dc66e0dbf56277a1fee0619e5b7aa68f0a3 (diff) | |
download | AntennaPod-1b7c5f492786140e5b1a519436cdb42cf32f73c9.zip |
Keep screen on when playing video. fixes #362
Diffstat (limited to 'src')
-rw-r--r-- | src/de/danoeh/antennapod/activity/VideoplayerActivity.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/de/danoeh/antennapod/activity/VideoplayerActivity.java b/src/de/danoeh/antennapod/activity/VideoplayerActivity.java index f323cb681..489d57340 100644 --- a/src/de/danoeh/antennapod/activity/VideoplayerActivity.java +++ b/src/de/danoeh/antennapod/activity/VideoplayerActivity.java @@ -50,6 +50,7 @@ public class VideoplayerActivity extends MediaplayerActivity { if (Build.VERSION.SDK_INT >= 11) { requestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY); } + getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); super.onCreate(savedInstanceState); getSupportActionBar().setBackgroundDrawable(new ColorDrawable(0x80000000)); } |