[Android] Browser: Always restore selection helper

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


vlc-android | branch: 3.2.x | Geoffrey Métais <geoffrey at videolan.org> | Wed Dec 11 14:42:22 2019 +0000| [0256f033e3679ed6f6702cd53ad6d6085ff5e94b] | committer: Nicolas Pomepuy

Browser: Always restore selection helper


(cherry picked from commit d4cb648e5e9dcf5ecdd18ee199a751a559b71f6b)

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

 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 553ee7b7e..15a738150 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt
@@ -486,6 +486,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()
@@ -494,7 +495,6 @@ abstract class BaseBrowserFragment : MediaBrowserFragment<BrowserModel>(), IRefr
                 layoutManager.scrollToPositionWithOffset(savedPosition, 0)
                 savedPosition = 0
             }
-            restoreMultiSelectHelper()
         }
         if (!isRootDirectory) {
             updateFab()



More information about the Android mailing list