[Android] Fix Internal Storage name display

Geoffrey Métais git at videolan.org
Mon May 4 14:31:24 CEST 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon May  4 14:18:18 2015 +0200| [4c2914d719fda7f5d33d1f4a82878087aa7efeb6] | committer: Geoffrey Métais

Fix Internal Storage name display

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

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
index a703748..2925473 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
@@ -157,7 +157,7 @@ public class BaseBrowserAdapter extends  RecyclerView.Adapter<RecyclerView.ViewH
         final Storage storage = (Storage) getItem(position);
         boolean isPublicStorage = TextUtils.equals(storage.getPath(), Environment.getExternalStorageDirectory().getPath());
         boolean hasContextMenu = !isPublicStorage && mCustomDirsLocation.contains(storage.getPath());
-        vh.title.setText(storage.getName());
+        vh.title.setText(isPublicStorage ? holder.itemView.getContext().getString(R.string.internal_memory) : storage.getName());
         vh.icon.setVisibility(View.GONE);
         vh.checkBox.setVisibility(View.VISIBLE);
         vh.more.setVisibility(hasContextMenu ? View.VISIBLE : View.GONE);



More information about the Android mailing list