[Android] Display seek buttons by default

Geoffrey Métais git at videolan.org
Tue Dec 16 16:23:55 CET 2014


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Oct 17 18:59:15 2014 +0200| [55b8adff614563ddfb0d0dbb7ef722050f4b4ed6] | committer: Geoffrey Métais

Display seek buttons by default

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=55b8adff614563ddfb0d0dbb7ef722050f4b4ed6
---

 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 9592979..f3b425e 100644
--- a/vlc-android/res/xml/preferences.xml
+++ b/vlc-android/res/xml/preferences.xml
@@ -60,7 +60,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 098c35d..2b33e41 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -344,7 +344,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);
@@ -1990,8 +1990,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);



More information about the Android mailing list