mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-02-07 14:03:31 +01:00
Keep screen on when playing video. fixes #362
This commit is contained in:
parent
132d3dc66e
commit
1b7c5f4927
@ -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));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user