Its now possible to click on the current song in now playing screen to expand the queue.

This commit is contained in:
Karim Abou Zeid 2015-12-27 18:54:43 +01:00
commit dc14e62df5

View file

@ -386,6 +386,17 @@ public class PlayerFragment extends AbsPlayerFragment implements PlayerAlbumCove
return currentSong;
}
});
currentSongViewHolder.itemView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// toggle the panel
if (fragment.slidingUpPanelLayout.getPanelState() == SlidingUpPanelLayout.PanelState.COLLAPSED) {
fragment.slidingUpPanelLayout.setPanelState(SlidingUpPanelLayout.PanelState.EXPANDED);
} else if (fragment.slidingUpPanelLayout.getPanelState() == SlidingUpPanelLayout.PanelState.EXPANDED) {
fragment.slidingUpPanelLayout.setPanelState(SlidingUpPanelLayout.PanelState.COLLAPSED);
}
}
});
}
@Override