remove orphaned mEmptyQueue view

This commit is contained in:
Adrian Ulrich 2015-11-04 12:30:33 +01:00
parent 655d071901
commit d42bd1c252

View File

@ -134,7 +134,6 @@ public class LibraryActivity
private TextView mTitle;
private TextView mArtist;
private ImageView mCover;
private View mEmptyQueue;
private View mPermissionRequest;
private MenuItem mSearchMenuItem;
@ -536,8 +535,6 @@ public class LibraryActivity
openPlaybackActivity();
} else if (view == mPermissionRequest) {
PermissionRequestActivity.requestPermissions(this, getIntent());
} else if (view == mEmptyQueue) {
setState(PlaybackService.get(this).setFinishAction(SongTimeline.FINISH_RANDOM));
} else if (view.getTag() != null) {
// a limiter view was clicked
int i = (Integer)view.getTag();
@ -942,10 +939,6 @@ public class LibraryActivity
protected void onStateChange(int state, int toggled)
{
super.onStateChange(state, toggled);
if ((toggled & PlaybackService.FLAG_EMPTY_QUEUE) != 0 && mEmptyQueue != null) {
mEmptyQueue.setVisibility((state & PlaybackService.FLAG_EMPTY_QUEUE) == 0 ? View.GONE : View.VISIBLE);
}
}
@Override