[Android] Show full path in FilePicker
Geoffrey Métais
git at videolan.org
Thu May 26 16:27:24 CEST 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu May 26 15:31:16 2016 +0200| [8e36ffa793051a921476e3aff182764b623ded26] | committer: Geoffrey Métais
Show full path in FilePicker
> https://code.videolan.org/videolan/vlc-android/commit/8e36ffa793051a921476e3aff182764b623ded26
---
vlc-android/src/org/videolan/vlc/gui/browser/FileBrowserFragment.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/FileBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/browser/FileBrowserFragment.java
index 222f2cc..00fe81f 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/FileBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/FileBrowserFragment.java
@@ -83,9 +83,9 @@ public class FileBrowserFragment extends BaseBrowserFragment {
if (TextUtils.equals(AndroidDevices.EXTERNAL_PUBLIC_DIRECTORY, Strings.removeFileProtocole(mMrl)))
title = getString(R.string.internal_memory);
else
- title = mCurrentMedia.getTitle();
+ title = this instanceof FilePickerFragment ? mCurrentMedia.getUri().toString() : mCurrentMedia.getTitle();
} else
- title = FileUtils.getFileNameFromPath(mMrl);
+ title = this instanceof FilePickerFragment ? mMrl : FileUtils.getFileNameFromPath(mMrl);
return title;
}
}
More information about the Android
mailing list