Keep screen on when playing video. fixes #362

This commit is contained in:
daniel oeh 2014-03-04 22:26:44 +01:00
parent 132d3dc66e
commit 1b7c5f4927

View File

@ -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));
}