[Android] TV: Fix "all videos" strings

Geoffrey Métais git at videolan.org
Thu Jul 19 10:32:38 CEST 2018


vlc-android | branch: 3.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jul 19 10:32:10 2018 +0200| [b4c029efbde5d32dc994d5e37ee9f2a8b4c97ee3] | committer: Geoffrey Métais

TV: Fix "all videos" strings

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

 vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java b/vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java
index da11fe4c7..0b15b8f89 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java
@@ -425,7 +425,7 @@ public class MainTvActivity extends BaseTvActivity implements OnItemViewSelected
             mVideoAdapter = new ArrayObjectAdapter(new CardPresenter(mContext));
             final HeaderItem videoHeader = new HeaderItem(HEADER_VIDEO, getString(R.string.video));
             // Empty item to launch grid activity
-            mVideoAdapter.add(new CardPresenter.SimpleCard(0, "All videos", videoList.length+" "+getString(R.string.videos), R.drawable.ic_video_collection_big));
+            mVideoAdapter.add(new CardPresenter.SimpleCard(0, getString(R.string.videos_all), getResources().getQuantityString(R.plurals.videos_quantity, videoList.length, videoList.length), R.drawable.ic_video_collection_big));
             // Update video section
             if (!Tools.isArrayEmpty(videoList)) {
                 final int size = Math.min(NUM_ITEMS_PREVIEW, videoList.length);



More information about the Android mailing list