Disable tap of album art causing toggle to playlist

Way too annoying when trying to use swipe gestures.
The swipe gestures to change tracks and seek remain. All these should be
configurable.
This commit is contained in:
Andrew Rabert 2019-03-14 19:46:52 -04:00
parent f4fbdc2bb1
commit 02ffb3b8f0
1 changed files with 2 additions and 6 deletions

View File

@ -274,12 +274,8 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis
View overlay = rootView.findViewById(R.id.download_overlay_buttons);
final int overlayHeight = overlay != null ? overlay.getHeight() : -1;
albumArtImageView.setOnClickListener(view -> {
if (overlayHeight == -1 || lastY < (view.getBottom() - overlayHeight)) {
toggleFullscreenAlbumArt();
setControlsVisible(true);
}
});
// seems pointless, but allows swipe gestures to work
albumArtImageView.setOnClickListener(view -> {});
progressBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
@Override