Its now possible to click on the current song in now playing screen to expand the queue.
This commit is contained in:
parent
7dd70fa6f0
commit
dc14e62df5
1 changed files with 11 additions and 0 deletions
|
|
@ -386,6 +386,17 @@ public class PlayerFragment extends AbsPlayerFragment implements PlayerAlbumCove
|
||||||
return currentSong;
|
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
|
@Override
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue