[Android] Delay OTG device browsing command
Geoffrey Métais
git at videolan.org
Wed Aug 1 10:30:05 CEST 2018
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jul 31 18:35:25 2018 +0200| [7d0adaa100324599cb95240d8396d26bd287edbd] | committer: Geoffrey Métais
Delay OTG device browsing command
This is to ensure the fragment is resumed
> https://code.videolan.org/videolan/vlc-android/commit/7d0adaa100324599cb95240d8396d26bd287edbd
---
.../src/org/videolan/vlc/gui/browser/FileBrowserFragment.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
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 3c5407306..16a7088da 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/FileBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/FileBrowserFragment.java
@@ -99,7 +99,12 @@ public class FileBrowserFragment extends BaseBrowserFragment {
final MediaWrapper mw = new MediaWrapper(uri);
mw.setType(MediaWrapper.TYPE_DIR);
mw.setTitle(title);
- browse(mw, true);
+ getHandler().post(new Runnable() {
+ @Override
+ public void run() {
+ browse(mw, true);
+ }
+ });
}
});
OtgAccess.Companion.requestOtgRoot(requireActivity());
More information about the Android
mailing list