Dont't bypass the context menu in long click on album view.

(cherry picked from commit 2aa31e0)
This commit is contained in:
biconou 2016-02-10 21:55:32 +01:00 committed by rcocula
parent a0a8c86924
commit a17b2f978c
2 changed files with 13 additions and 2 deletions

View File

@ -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;
albumView.maximizeOrMinimize();
if (!albumView.isMaximized()) {
albumView.maximizeOrMinimize();
return true;
} else {
return false;
}
}
if (view instanceof SongView) {
SongView songView = (SongView) view;
songView.maximizeOrMinimize();
return true;
}
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);

View File

@ -95,6 +95,10 @@ public class AlbumView extends UpdateView
return this.entry;
}
public boolean isMaximized() {
return maximized;
}
public void maximizeOrMinimize() {
if (maximized) {
maximized = false;