[Android] Main browser: listen for folders content info

Geoffrey Métais git at videolan.org
Thu Apr 16 15:43:17 CEST 2020


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Mar 30 16:15:09 2020 +0200| [39f4cfaf2278be79285843fb053b15e06078d1eb] | committer: Nicolas Pomepuy

Main browser: listen for folders content info

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

 .../src/org/videolan/vlc/gui/browser/MainBrowserFragment.kt            | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/browser/MainBrowserFragment.kt b/application/vlc-android/src/org/videolan/vlc/gui/browser/MainBrowserFragment.kt
index 2131f65b2..10c0f387f 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/browser/MainBrowserFragment.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/browser/MainBrowserFragment.kt
@@ -143,6 +143,9 @@ class MainBrowserFragment : BaseFragment(), View.OnClickListener, CtxActionRecei
             }
         })
         localViewModel.browseRoot()
+        localViewModel.getDescriptionUpdate().observe(viewLifecycleOwner, Observer { pair ->
+            if (pair != null) storageBrowserAdapter.notifyItemChanged(pair.first, pair.second)
+        })
 
 
 



More information about the Android mailing list