get rid of dead ACTION_PLAY_OR_ENQUEUE

This commit is contained in:
Adrian Ulrich 2015-02-15 17:23:20 +01:00
parent 5d89a5604f
commit 7d21710015

View File

@ -104,10 +104,6 @@ public class LibraryActivity
* Action for row click: expand the row.
*/
public static final int ACTION_EXPAND = 6;
/**
* Action for row click: play if paused or enqueue if playing.
*/
public static final int ACTION_PLAY_OR_ENQUEUE = 7;
/**
* The SongTimeline add song modes corresponding to each relevant action.
*/
@ -471,8 +467,6 @@ public class LibraryActivity
// default to playing when trying to expand something that can't
// be expanded
action = ACTION_PLAY;
} else if (action == ACTION_PLAY_OR_ENQUEUE) {
action = (mState & PlaybackService.FLAG_PLAYING) == 0 ? ACTION_PLAY : ACTION_ENQUEUE;
}
pickSongs(rowData, action);
}