[Android] Browser: Always restore selection helper

Geoffrey Métais git at videolan.org
Wed Dec 11 15:42:23 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey at videolan.org> | Wed Dec 11 15:42:22 2019 +0100| [d4cb648e5e9dcf5ecdd18ee199a751a559b71f6b] | committer: Nicolas Pomepuy

Browser: Always restore selection helper

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

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt
index c8443ee13..d61263ebc 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt
@@ -547,6 +547,7 @@ abstract class BaseBrowserFragment : MediaBrowserFragment<BrowserModel>(), IRefr
     override fun onMainActionClick(v: View, position: Int, item: MediaLibraryItem) {}
 
     override fun onUpdateFinished(adapter: RecyclerView.Adapter<*>) {
+        restoreMultiSelectHelper()
         swipeRefreshLayout.isRefreshing = false
         handler.sendEmptyMessage(MSG_HIDE_LOADING)
         updateEmptyView()
@@ -555,7 +556,6 @@ abstract class BaseBrowserFragment : MediaBrowserFragment<BrowserModel>(), IRefr
                 layoutManager.scrollToPositionWithOffset(savedPosition, 0)
                 savedPosition = 0
             }
-            restoreMultiSelectHelper()
         }
         if (!isRootDirectory) {
             updateFab()



More information about the Android mailing list