[Android] [PATCH] Display seek buttons by default

Geoffrey Métais geoffrey.metais at gmail.com
Wed Oct 29 15:57:12 CET 2014


---
 vlc-android/res/xml/preferences.xml                               | 2 +-
 .../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java       | 8 +++++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/vlc-android/res/xml/preferences.xml b/vlc-android/res/xml/preferences.xml
index 8ec773f..f517cd8 100644
--- a/vlc-android/res/xml/preferences.xml
+++ b/vlc-android/res/xml/preferences.xml
@@ -53,7 +53,7 @@
                     android:summary="@string/enable_brightness_gesture_summary"
                     android:title="@string/enable_brightness_gesture" />
                 <CheckBoxPreference
-                    android:defaultValue="false"
+                    android:defaultValue="true"
                     android:key="enable_jump_buttons"
                     android:summary="@string/enable_jump_buttons_summary"
                     android:title="@string/enable_jump_buttons" />
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index f1423b2..67faf67 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -334,7 +334,7 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
         mScreenOrientation = Integer.valueOf(
                 mSettings.getString("screen_orientation_value", "4" /*SCREEN_ORIENTATION_SENSOR*/));
 
-        mEnableJumpButtons = mSettings.getBoolean("enable_jump_buttons", false);
+        mEnableJumpButtons = mSettings.getBoolean("enable_jump_buttons", true);
         mPlayPause = (ImageButton) findViewById(R.id.player_overlay_play);
         mPlayPause.setOnClickListener(mPlayPauseListener);
         mBackward = (ImageButton) findViewById(R.id.player_overlay_backward);
@@ -1837,8 +1837,10 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
             if (!mIsLocked) {
                 setActionBarVisibility(true);
                 mPlayPause.setVisibility(View.VISIBLE);
-                mBackward.setVisibility(View.VISIBLE);
-                mForward.setVisibility(View.VISIBLE);
+                if (mEnableJumpButtons) {
+                    mBackward.setVisibility(View.VISIBLE);
+                    mForward.setVisibility(View.VISIBLE);
+                }
                 dimStatusBar(false);
             }
             mOverlayProgress.setVisibility(View.VISIBLE);
-- 
1.9.1



More information about the Android mailing list