removed Play next feature for currently playing track
This commit is contained in:
parent
95dcdad1aa
commit
4ea384da53
3 changed files with 6 additions and 3 deletions
|
@ -84,7 +84,8 @@ class AlbumsTracksAdapter(
|
|||
|
||||
override fun prepareActionMode(menu: Menu) {
|
||||
menu.apply {
|
||||
findItem(R.id.cab_play_next).isVisible = isOneItemSelected() && MusicService.mCurrTrack != getSelectedTracks().firstOrNull() && isATrack()
|
||||
findItem(R.id.cab_play_next).isVisible =
|
||||
isOneItemSelected() && MusicService.mCurrTrack != getSelectedTracks().firstOrNull() && isATrack() && MusicService.mCurrTrack !== null
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -84,7 +84,8 @@ class TracksAdapter(
|
|||
findItem(R.id.cab_remove_from_playlist).isVisible = isPlaylistContent
|
||||
findItem(R.id.cab_rename).isVisible =
|
||||
isOneItemSelected() && getSelectedTracks().firstOrNull()?.let { !it.path.startsWith("content://") && tagHelper.isEditTagSupported(it) } == true
|
||||
findItem(R.id.cab_play_next).isVisible = isOneItemSelected() && MusicService.mCurrTrack != getSelectedTracks().firstOrNull()
|
||||
findItem(R.id.cab_play_next).isVisible =
|
||||
isOneItemSelected() && MusicService.mCurrTrack != getSelectedTracks().firstOrNull() && MusicService.mCurrTrack !== null
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -77,7 +77,8 @@ class TracksHeaderAdapter(activity: SimpleActivity, var items: ArrayList<ListIte
|
|||
val oneItemsSelected = isOneItemSelected()
|
||||
val selected = getSelectedTracks().firstOrNull()?.let { !it.path.startsWith("content://") && tagHelper.isEditTagSupported(it) } == true
|
||||
findItem(R.id.cab_rename).isVisible = oneItemsSelected && selected
|
||||
findItem(R.id.cab_play_next).isVisible = isOneItemSelected() && MusicService.mCurrTrack != getSelectedTracks().firstOrNull()
|
||||
findItem(R.id.cab_play_next).isVisible =
|
||||
isOneItemSelected() && MusicService.mCurrTrack != getSelectedTracks().firstOrNull() && MusicService.mCurrTrack !== null
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue