[Android] Option to not show video title during transitions
Geoffrey Métais
git at videolan.org
Thu Dec 20 16:43:52 CET 2018
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Dec 20 16:43:18 2018 +0100| [b42e45737ab011322bdd600f061479e9753b4b36] | committer: Geoffrey Métais
Option to not show video title during transitions
Fix #696
> https://code.videolan.org/videolan/vlc-android/commit/b42e45737ab011322bdd600f061479e9753b4b36
---
vlc-android/res/values/strings.xml | 2 ++
vlc-android/res/xml/preferences_video.xml | 5 +++++
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 2 +-
3 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/vlc-android/res/values/strings.xml b/vlc-android/res/values/strings.xml
index f887a5ed5..02e173445 100644
--- a/vlc-android/res/values/strings.xml
+++ b/vlc-android/res/values/strings.xml
@@ -312,6 +312,8 @@
<string name="video_min_group_length_long">Long number of letters (9)</string>
<string name="media_fast_seek">Fast seek</string>
<string name="media_fast_seek_summary">Seeking in a media is faster but less accurate</string>
+ <string name="video_transition_title">Videos transition</string>
+ <string name="video_transition_summary">Show new video title on transition</string>
<string name="media_seen">Show seen video marker</string>
<string name="media_seen_summary">Mark a video as seen when you play it until the end</string>
<string name="force_list_portrait">No grid in portrait mode</string>
diff --git a/vlc-android/res/xml/preferences_video.xml b/vlc-android/res/xml/preferences_video.xml
index ae8d09ecb..06c57c386 100644
--- a/vlc-android/res/xml/preferences_video.xml
+++ b/vlc-android/res/xml/preferences_video.xml
@@ -38,6 +38,11 @@
android:key="media_fast_seek"
android:summary="@string/media_fast_seek_summary"
android:title="@string/media_fast_seek" />
+ <CheckBoxPreference
+ android:defaultValue="true"
+ android:key="video_transition_show"
+ android:summary="@string/video_transition_summary"
+ android:title="@string/video_transition_title" />
<PreferenceCategory android:title="@string/controls_prefs_category">
<CheckBoxPreference
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 af3b43c5c..86b89150b 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -444,7 +444,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IPlaybackS
mPlaylistAdapter.setCurrentIndex(mService.getCurrentMediaPosition());
mPlaylist.setVisibility(View.GONE);
}
- showTitle();
+ if (mSettings.getBoolean("video_transition_show", true)) showTitle();
initUI();
setPlaybackParameters();
mForcedTime = mLastTime = -1;
More information about the Android
mailing list