Fix album/track count in artist detail list 01/253401/1 submit/tizen/20210209.123120
authorJagrat Patidar <j1.patidar@samsung.com>
Tue, 9 Feb 2021 11:43:44 +0000 (17:13 +0530)
committerJagrat Patidar <j1.patidar@samsung.com>
Tue, 9 Feb 2021 12:23:57 +0000 (12:23 +0000)
Change-Id: Ia5f205a8241f579766e2d079ed65890a73ee199a
(cherry picked from commit e5fa1afa97662a3c21940c44bf64789867f37458)

src/widget/mp-artist-detail-list.c
src/widget/mp-minicontroller.c

index 702d72245cdfc87c98900b3efde2e8e3ea6614b0..1313763409aa7b3fabfc0bf0f66b3215e7f732b7 100755 (executable)
@@ -522,7 +522,6 @@ static int _mp_artist_detail_list_append_album_tracks(void *thiz,
                                                                  name, list->type_str, NULL, -1, 0,
                                                                  count);
        MP_CHECK_VAL(ret == 0, 0);
-
        DEBUG_TRACE("count is %d", count);
        real_count = count;
        int index = 0;
@@ -573,7 +572,6 @@ static int _mp_artist_detail_list_append_album_tracks(void *thiz,
                                selected_tracks_count++;
                        }
                }
-
                item_data->it =
                                elm_genlist_item_append(list->genlist, list->itc_track,
                                                item_data, parent_group,
@@ -854,6 +852,9 @@ static void _mp_artist_detail_list_load_list(void *thiz, int count)
        }
        elm_object_text_set(list->album_track_count_label, _mp_artist_detail_list_shuffle_text_get(list->genlist));
   END:
+       if (elm_genlist_items_count(list->genlist) > 0) {
+               elm_object_text_set(list->album_track_count_label, _mp_artist_detail_list_shuffle_text_get(list->genlist));
+       }
        endfunc;
 }
 
@@ -1271,7 +1272,7 @@ MpArtistDetailList_t *mp_artist_detail_list_create(Evas_Object * parent)
 
        //label
        list->album_track_count_label = elm_label_add(list->artist_detail_control_layout);
-       elm_object_text_set(list->album_track_count_label, "check");
+       elm_object_text_set(list->album_track_count_label, "");
        elm_object_part_content_set(list->artist_detail_control_layout, "label_part_swallow", list->album_track_count_label);
        evas_object_show(list->album_track_count_label);
 
index adfde49a7d17930f59c595ed0f49db2475802dce..f1fbad694b1ec1c180168b428a7c909cd82e0d15 100755 (executable)
@@ -447,6 +447,11 @@ static void _quick_panel_cb(minicontrol_viewer_event_e event_type,
                        */
                        _minicontroller_close_music();
                }
+               /*
+               In case minicontrol(quickpanel) receives width > MINI_CONTROLLER_W for mini-controller,
+               quickpanel will send an event MINICONTROL_VIEWER_EVENT_REPORT_ANGLE to music-player,
+               after receiving this event, music-player resizes mini-controller to (MINI_CONTROLLER_W x MINI_CONTROLLER_H) in method mp_minicontroller_rotate.
+               */
                mp_minicontroller_rotate(ad, angle);
        }
        hide_from_mp = false;