}
else if (btnType == BTN_SORT) {
CSortCtxPopup *sortCtxPopup = NULL;
- CSortCtxPopup::ESortBtnType sortBtnType;
+ CSortCtxPopup::ESortBtnType sortBtnType = CSortCtxPopup::TYPE_SONG;
m->btntype = btnType;
layout_id = m->lmgr->Layout()->LayoutId();
sortCtxPopup = new CSortCtxPopup;
if (layout_id) {
- if (!strcmp(layout_id, MUSIC_ALBUM_LAYOUT)) {
+ if (!strcmp(layout_id, MUSIC_SONG_LAYOUT)) {
+ sortBtnType = CSortCtxPopup::TYPE_SONG;
+ }
+ else if (!strcmp(layout_id, MUSIC_ALBUM_LAYOUT)) {
sortBtnType = CSortCtxPopup::TYPE_ALBUM;
}
else if (!strcmp(layout_id, MUSIC_FOLDER_LAYOUT)) {