fix: enable pull-to-refresh based on preference (#177)

See: https://github.com/FossifyOrg/File-Manager/issues/136
This commit is contained in:
Naveen Singh
2025-05-20 09:27:29 +05:30
committed by GitHub
parent 2c0e31cdcf
commit 2fe8b22fd4
2 changed files with 7 additions and 1 deletions

View File

@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Replaced checkboxes with switches
### Fixed
- Pull-to-refresh setting is now applied as expected ([#136])
## [1.0.1] - 2024-03-17
### Changed
@@ -35,3 +39,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[Unreleased]: https://github.com/FossifyOrg/File-Manager/compare/1.0.1...HEAD
[1.0.1]: https://github.com/FossifyOrg/File-Manager/compare/1.0.0...1.0.1
[1.0.0]: https://github.com/FossifyOrg/File-Manager/releases/tag/1.0.0
[#136]: https://github.com/FossifyOrg/File-Manager/issues/136

View File

@@ -220,7 +220,7 @@ class ItemsAdapter(
}
override fun onActionModeDestroyed() {
swipeRefreshLayout?.isEnabled = true
swipeRefreshLayout?.isEnabled = config.enablePullToRefresh
}
override fun getItemViewType(position: Int): Int {