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); View overlay = rootView.findViewById(R.id.download_overlay_buttons);
final int overlayHeight = overlay != null ? overlay.getHeight() : -1; final int overlayHeight = overlay != null ? overlay.getHeight() : -1;
albumArtImageView.setOnClickListener(view -> { // seems pointless, but allows swipe gestures to work
if (overlayHeight == -1 || lastY < (view.getBottom() - overlayHeight)) { albumArtImageView.setOnClickListener(view -> {});
toggleFullscreenAlbumArt();
setControlsVisible(true);
}
});
progressBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() { progressBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
@Override @Override