-Modified play queue action buttons on playlist and channel fragments.

-Added info item menu with custom title banner on long click.
-Enabled starting playlists and channels from middle.
-Enabled caching for play queue item thumbnails.
-Modified play queue to revert to first item on deleting last item.
This commit is contained in:
John Zhen Mo 2017-11-11 14:47:34 -08:00
parent cf147aa161
commit ce36f3ae3b
16 changed files with 464 additions and 125 deletions

View file

@ -444,20 +444,22 @@ public abstract class ServicePlayerActivity extends AppCompatActivity
@Override
public void onClick(View view) {
if (player == null) return;
if (view.getId() == repeatButton.getId()) {
if (player != null) player.onRepeatClicked();
player.onRepeatClicked();
} else if (view.getId() == backwardButton.getId()) {
if (player != null) player.onPlayPrevious();
player.onPlayPrevious();
} else if (view.getId() == playPauseButton.getId()) {
if (player != null) player.onVideoPlayPause();
player.onVideoPlayPause();
} else if (view.getId() == forwardButton.getId()) {
if (player != null) player.onPlayNext();
player.onPlayNext();
} else if (view.getId() == shuffleButton.getId()) {
if (player != null) player.onShuffleClicked();
player.onShuffleClicked();
} else if (view.getId() == playbackSpeedButton.getId()) {
playbackSpeedPopupMenu.show();