summaryrefslogtreecommitdiff
path: root/src/de/podfetcher/activity
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2012-07-01 21:31:00 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2012-07-01 21:31:00 +0200
commit5a0f1f49c99576d45ec94ef63a38a298a79bcff7 (patch)
treed0589160cdf98a9e795b8cea1729686a13d13196 /src/de/podfetcher/activity
parent36cafbc7889a2a977bfebd24c2d4fa3df51aa032 (diff)
downloadAntennaPod-5a0f1f49c99576d45ec94ef63a38a298a79bcff7.zip
Mediaplayer now only switches to fullscreen when playing video
Diffstat (limited to 'src/de/podfetcher/activity')
-rw-r--r--src/de/podfetcher/activity/MediaplayerActivity.java7
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);
}
}