mirror of
https://github.com/cmclark00/RetroMusicPlayer.git
synced 2025-05-21 01:25:19 +01:00
Added option to disable changing song by swiping anywhere on the now playing screen
This commit is contained in:
parent
7c5a97c410
commit
8db4afa502
5 changed files with 22 additions and 6 deletions
|
@ -315,11 +315,13 @@ abstract class AbsPlayerFragment(@LayoutRes layout: Int) : AbsMainActivityFragme
|
|||
}
|
||||
}
|
||||
requireView().setOnTouchListener(
|
||||
SwipeDetector(
|
||||
requireContext(),
|
||||
playerAlbumCoverFragment?.viewPager,
|
||||
requireView()
|
||||
)
|
||||
if (PreferenceUtil.swipeAnywhereToChangeSong) {
|
||||
SwipeDetector(
|
||||
requireContext(),
|
||||
playerAlbumCoverFragment?.viewPager,
|
||||
requireView()
|
||||
)
|
||||
} else null
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue