diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2012-07-01 21:31:00 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2012-07-01 21:31:00 +0200 |
commit | 5a0f1f49c99576d45ec94ef63a38a298a79bcff7 (patch) | |
tree | d0589160cdf98a9e795b8cea1729686a13d13196 | |
parent | 36cafbc7889a2a977bfebd24c2d4fa3df51aa032 (diff) | |
download | AntennaPod-5a0f1f49c99576d45ec94ef63a38a298a79bcff7.zip |
Mediaplayer now only switches to fullscreen when playing video
-rw-r--r-- | src/de/podfetcher/activity/MediaplayerActivity.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/de/podfetcher/activity/MediaplayerActivity.java b/src/de/podfetcher/activity/MediaplayerActivity.java index 1aefbd0a1..bfeda933b 100644 --- a/src/de/podfetcher/activity/MediaplayerActivity.java +++ b/src/de/podfetcher/activity/MediaplayerActivity.java @@ -157,9 +157,7 @@ public class MediaplayerActivity extends SherlockFragmentActivity implements protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.d(TAG, "Creating Activity"); - requestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY); - getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, - WindowManager.LayoutParams.FLAG_FULLSCREEN); + orientation = getResources().getConfiguration().orientation; manager = FeedManager.getInstance(); getWindow().setFormat(PixelFormat.TRANSPARENT); @@ -386,6 +384,9 @@ public class MediaplayerActivity extends SherlockFragmentActivity implements videoview.setOnClickListener(playbuttonListener); videoview.setOnTouchListener(onVideoviewTouched); setupVideoControlsToggler(); + requestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY); + getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, + WindowManager.LayoutParams.FLAG_FULLSCREEN); } } |