disable swipe-to-refresh in horizontal scrolling
This commit is contained in:
parent
9247b51194
commit
ea74fcf2c4
|
@ -462,6 +462,8 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setupScrollDirection() {
|
private fun setupScrollDirection() {
|
||||||
|
directories_refresh_layout.isEnabled = !config.scrollHorizontally
|
||||||
|
|
||||||
directories_vertical_fastscroller.isHorizontal = false
|
directories_vertical_fastscroller.isHorizontal = false
|
||||||
directories_vertical_fastscroller.beGoneIf(config.scrollHorizontally)
|
directories_vertical_fastscroller.beGoneIf(config.scrollHorizontally)
|
||||||
|
|
||||||
|
|
|
@ -159,6 +159,8 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setupScrollDirection() {
|
private fun setupScrollDirection() {
|
||||||
|
media_refresh_layout.isEnabled = !config.scrollHorizontally
|
||||||
|
|
||||||
media_vertical_fastscroller.isHorizontal = false
|
media_vertical_fastscroller.isHorizontal = false
|
||||||
media_vertical_fastscroller.beGoneIf(config.scrollHorizontally)
|
media_vertical_fastscroller.beGoneIf(config.scrollHorizontally)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue