[Android] Remove the useless showHiddenFiles model/provider constructor param

Nicolas Pomepuy git at videolan.org
Wed Aug 10 09:15:06 UTC 2022


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Aug  9 14:09:06 2022 +0200| [05224d02a19e1ab348af4560f36ff3a1f79c5c71] | committer: Duncan McNamara

Remove the useless showHiddenFiles model/provider constructor param

It's in fact managed in Settings instead as it's a global setting.
Also, it avoid using the flag when it's not needed, ie in the FilePickerProvider
and in the StorageProvider

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

 .../television/ui/browser/FileBrowserTvFragment.kt  |  2 +-
 .../videolan/vlc/gui/browser/BaseBrowserFragment.kt |  3 +--
 .../videolan/vlc/gui/browser/FileBrowserFragment.kt |  5 +----
 .../vlc/gui/browser/MLStorageBrowserFragment.kt     |  4 ++--
 .../videolan/vlc/gui/browser/MainBrowserFragment.kt |  4 ++--
 .../vlc/gui/browser/NetworkBrowserFragment.kt       |  3 +--
 .../vlc/gui/browser/StorageBrowserFragment.kt       |  2 +-
 .../videolan/vlc/gui/dialogs/SavePlaylistDialog.kt  |  6 ++++--
 .../org/videolan/vlc/providers/BrowserProvider.kt   |  9 ++-------
 .../videolan/vlc/providers/FileBrowserProvider.kt   |  4 ++--
 .../videolan/vlc/providers/FilePickerProvider.kt    |  2 +-
 .../org/videolan/vlc/providers/NetworkProvider.kt   |  2 +-
 .../org/videolan/vlc/providers/StorageProvider.kt   |  6 +++++-
 .../vlc/viewmodels/browser/BrowserFavoritesModel.kt |  2 +-
 .../videolan/vlc/viewmodels/browser/BrowserModel.kt | 21 ++++++++-------------
 .../videolan/vlc/viewmodels/browser/NetworkModel.kt |  8 +++-----
 16 files changed, 36 insertions(+), 47 deletions(-)

Diff:   https://code.videolan.org/videolan/vlc-android/commit/05224d02a19e1ab348af4560f36ff3a1f79c5c71


More information about the Android mailing list