Skip to content

Commit 2fe8b22

Browse files
authored
fix: enable pull-to-refresh based on preference (#177)
See: #136
1 parent 2c0e31c commit 2fe8b22

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- Replaced checkboxes with switches
1313

14+
### Fixed
15+
16+
- Pull-to-refresh setting is now applied as expected ([#136])
17+
1418
## [1.0.1] - 2024-03-17
1519

1620
### Changed
@@ -35,3 +39,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3539
[Unreleased]: https://github.com/FossifyOrg/File-Manager/compare/1.0.1...HEAD
3640
[1.0.1]: https://github.com/FossifyOrg/File-Manager/compare/1.0.0...1.0.1
3741
[1.0.0]: https://github.com/FossifyOrg/File-Manager/releases/tag/1.0.0
42+
43+
[#136]: https://github.com/FossifyOrg/File-Manager/issues/136

app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ class ItemsAdapter(
220220
}
221221

222222
override fun onActionModeDestroyed() {
223-
swipeRefreshLayout?.isEnabled = true
223+
swipeRefreshLayout?.isEnabled = config.enablePullToRefresh
224224
}
225225

226226
override fun getItemViewType(position: Int): Int {

0 commit comments

Comments
 (0)