diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2014-11-06 18:56:57 +0100 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2014-11-06 18:56:57 +0100 |
commit | a8ae853cfd1e65de2aea8bc11e3373bd90e72f76 (patch) | |
tree | 455a1fabc51a7d2b6fc3b7f052130becc3c13633 /app/src | |
parent | c179ec7d35bd6e5d42c740fb71c4af13330f63a1 (diff) | |
download | AntennaPod-a8ae853cfd1e65de2aea8bc11e3373bd90e72f76.zip |
Controls in videoview were not hidden correctly
fixes #363
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/activity/VideoplayerActivity.java | 11 |
1 files changed, 6 insertions, 5 deletions
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 d3df40afb..a06259fff 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/VideoplayerActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/VideoplayerActivity.java @@ -6,12 +6,12 @@ import android.graphics.drawable.ColorDrawable; import android.os.AsyncTask; import android.os.Build; import android.os.Bundle; +import android.support.v4.view.WindowCompat; import android.util.Log; import android.util.Pair; import android.view.MotionEvent; import android.view.SurfaceHolder; import android.view.View; -import android.view.Window; import android.view.WindowManager; import android.view.animation.Animation; import android.view.animation.AnimationUtils; @@ -47,17 +47,15 @@ public class VideoplayerActivity extends MediaplayerActivity { @Override protected void chooseTheme() { - setTheme(R.style.Theme_AntennaPod_Dark); + setTheme(R.style.Theme_AntennaPod_VideoPlayer); } @SuppressLint("AppCompatMethod") @Override protected void onCreate(Bundle savedInstanceState) { - if (Build.VERSION.SDK_INT >= 11) { - requestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY); - } getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); super.onCreate(savedInstanceState); + supportRequestWindowFeature(WindowCompat.FEATURE_ACTION_BAR_OVERLAY); getSupportActionBar().setBackgroundDrawable(new ColorDrawable(0x80000000)); } @@ -336,6 +334,9 @@ public class VideoplayerActivity extends MediaplayerActivity { } if (Build.VERSION.SDK_INT >= 14) { videoview.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE); + getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_FULLSCREEN + | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION); + } videoOverlay.setVisibility(View.GONE); butPlay.setVisibility(View.GONE); |