Dont't bypass the context menu in long click on album view.
(cherry picked from commit 2aa31e0)
This commit is contained in:
parent
a0a8c86924
commit
a17b2f978c
|
@ -145,16 +145,23 @@ public class SelectAlbumActivity extends SubsonicTabActivity
|
|||
public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {
|
||||
if (view instanceof AlbumView) {
|
||||
AlbumView albumView = (AlbumView) view;
|
||||
if (!albumView.isMaximized()) {
|
||||
albumView.maximizeOrMinimize();
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (view instanceof SongView) {
|
||||
SongView songView = (SongView) view;
|
||||
songView.maximizeOrMinimize();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
selectButton = (ImageView) findViewById(R.id.select_album_select);
|
||||
playNowButton = (ImageView) findViewById(R.id.select_album_play_now);
|
||||
playNextButton = (ImageView) findViewById(R.id.select_album_play_next);
|
||||
|
|
|
@ -95,6 +95,10 @@ public class AlbumView extends UpdateView
|
|||
return this.entry;
|
||||
}
|
||||
|
||||
public boolean isMaximized() {
|
||||
return maximized;
|
||||
}
|
||||
|
||||
public void maximizeOrMinimize() {
|
||||
if (maximized) {
|
||||
maximized = false;
|
||||
|
|
Loading…
Reference in New Issue