[Android] Browser: prevent the sort title update to be called too frequently
Nicolas Pomepuy
git at videolan.org
Fri Jun 17 13:30:06 UTC 2022
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Jun 14 10:01:00 2022 +0200| [ff893b927c2d7592257340f06e18a55158a28a6e] | committer: Duncan McNamara
Browser: prevent the sort title update to be called too frequently
> https://code.videolan.org/videolan/vlc-android/commit/ff893b927c2d7592257340f06e18a55158a28a6e
---
.../vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt b/application/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt
index 4eaf7919a..2b94a5522 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt
@@ -134,6 +134,7 @@ abstract class BaseBrowserFragment : MediaBrowserFragment<BrowserModel>(), IRefr
browserShowHiddenFiles.isVisible = true
browserShowHiddenFiles.isChecked = Settings.getInstance(requireActivity()).getBoolean("browser_show_hidden_files", true)
if (requireActivity().isTalkbackIsEnabled()) menu.findItem(R.id.play_all).isVisible = true
+ UiTools.updateSortTitles(this)
}
protected open fun defineIsRoot() = mrl == null
@@ -617,7 +618,6 @@ abstract class BaseBrowserFragment : MediaBrowserFragment<BrowserModel>(), IRefr
updateEmptyView()
if (!isRootDirectory) {
updateFab()
- UiTools.updateSortTitles(this)
}
}
More information about the Android
mailing list