Call supportRequestWindowFeature before setting layout content

This commit is contained in:
daniel oeh 2014-11-19 16:05:27 +01:00
parent 9996682fdc
commit 7aff9dc3aa
1 changed files with 1 additions and 1 deletions

View File

@ -54,8 +54,8 @@ public class VideoplayerActivity extends MediaplayerActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
supportRequestWindowFeature(WindowCompat.FEATURE_ACTION_BAR_OVERLAY); // has to be called before setting layout content
super.onCreate(savedInstanceState);
supportRequestWindowFeature(WindowCompat.FEATURE_ACTION_BAR_OVERLAY);
getSupportActionBar().setBackgroundDrawable(new ColorDrawable(0x80000000));
}