From 7aff9dc3aac988fc697e9ec8d84b81e596b1a6ac Mon Sep 17 00:00:00 2001 From: daniel oeh Date: Wed, 19 Nov 2014 16:05:27 +0100 Subject: Call supportRequestWindowFeature before setting layout content --- .../main/java/de/danoeh/antennapod/activity/VideoplayerActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main/java/de') diff --git a/app/src/main/java/de/danoeh/antennapod/activity/VideoplayerActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/VideoplayerActivity.java index a06259fff..d625f21da 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/VideoplayerActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/VideoplayerActivity.java @@ -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)); } -- cgit v1.2.3