[Android] Set empty view text

Geoffrey Métais git at videolan.org
Mon Dec 21 17:22:04 CET 2015


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Dec 18 17:02:09 2015 +0100| [11d7ef38044c519a8ef360013cbc6c96c19b6473] | committer: Geoffrey Métais

Set empty view text

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

 vlc-android/res/values/strings.xml                                 | 7 +++++--
 vlc-android/src/org/videolan/vlc/gui/browser/ExtensionBrowser.java | 1 +
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/vlc-android/res/values/strings.xml b/vlc-android/res/values/strings.xml
index 18edb26..c8d8194 100644
--- a/vlc-android/res/values/strings.xml
+++ b/vlc-android/res/values/strings.xml
@@ -368,6 +368,11 @@
     <string name="exit_app">Close VLC</string>
     <string name="hardware_acceleration_error">hardware acceleration error, switching to software decoding</string>
 
+    <!-- PLugins -->
+    <string name="plugins">Plugins</string>
+    <string name="download_on_device">Download</string>
+    <string name="extension_empty">No item to display, go to your extension settings to get some.</string>
+
     <string-array name="hardware_acceleration_list">
         <item>@string/automatic</item>
         <item>@string/hardware_acceleration_disabled</item>
@@ -545,8 +550,6 @@
         <item>YV12</item>
     </string-array>
     <string name="chroma_format_default" translatable="false">RV32</string>
-    <string name="plugins">Plugins</string>
-    <string name="download_on_device">Download</string>
 
     <string-array name="chroma_formats" translatable="false">
         <item>RGB 32-bit</item>
diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/ExtensionBrowser.java b/vlc-android/src/org/videolan/vlc/gui/browser/ExtensionBrowser.java
index bdb2223..7f93199 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/ExtensionBrowser.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/ExtensionBrowser.java
@@ -69,6 +69,7 @@ public class ExtensionBrowser extends Fragment implements View.OnClickListener,
         View v = inflater.inflate(R.layout.directory_browser, container, false);
         mRecyclerView = (ContextMenuRecyclerView) v.findViewById(R.id.network_list);
         mEmptyView = (TextView) v.findViewById(android.R.id.empty);
+        mEmptyView.setText(R.string.extension_empty);
         mLayoutManager = new LinearLayoutManager(getActivity());
         mRecyclerView.addItemDecoration(new DividerItemDecoration(VLCApplication.getAppContext(), DividerItemDecoration.VERTICAL_LIST));
         mRecyclerView.setLayoutManager(mLayoutManager);



More information about the Android mailing list