[Android] Set videos fragments title to "videos"

Geoffrey Métais git at videolan.org
Mon Jan 14 16:15:25 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Jan 14 15:34:25 2019 +0100| [4f8e4926e21d8ade0dc2e14d7b5a3362e555f52d] | committer: Geoffrey Métais

Set videos fragments title to "videos"

> https://code.videolan.org/videolan/vlc-android/commit/4f8e4926e21d8ade0dc2e14d7b5a3362e555f52d
---

 vlc-android/src/org/videolan/vlc/gui/folders/FoldersFragment.kt   | 5 +----
 vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java | 2 +-
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/folders/FoldersFragment.kt b/vlc-android/src/org/videolan/vlc/gui/folders/FoldersFragment.kt
index 95a7dd0e2..ca4e9f98e 100644
--- a/vlc-android/src/org/videolan/vlc/gui/folders/FoldersFragment.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/folders/FoldersFragment.kt
@@ -12,10 +12,7 @@ import kotlinx.android.synthetic.main.folders_fragment.*
 import kotlinx.coroutines.*
 import kotlinx.coroutines.channels.actor
 import org.videolan.medialibrary.media.Folder
-import org.videolan.vlc.MediaParsingService
 import org.videolan.vlc.R
-import org.videolan.vlc.R.id.folders_list
-import org.videolan.vlc.R.id.swipeLayout
 import org.videolan.vlc.gui.SecondaryActivity
 import org.videolan.vlc.gui.browser.MediaBrowserFragment
 import org.videolan.vlc.gui.dialogs.CtxActionReceiver
@@ -88,7 +85,7 @@ class FoldersFragment : MediaBrowserFragment<PagedFoldersModel>(), CoroutineScop
         mSwipeRefreshLayout.setOnRefreshListener { activity?.reload() }
     }
 
-    override fun getTitle() = getString(R.string.videos_folders_title)
+    override fun getTitle() = getString(R.string.videos)
 
     override fun onRefresh() {
         viewModel.refresh()
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
index e3f5de259..d6b195bf1 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
@@ -167,7 +167,7 @@ public class VideoGridFragment extends MediaBrowserFragment<VideosModel> impleme
     }
 
     public String getTitle() {
-        return mGroup == null ? mFolder == null ? getString(R.string.video) : mFolder.getTitle() : mGroup + "\u2026";
+        return mGroup == null ? mFolder == null ? getString(R.string.videos) : mFolder.getTitle() : mGroup + "\u2026";
     }
 
     private void updateViewMode() {



More information about the Android mailing list