listmgr: focus bug fix 80/55180/1
authorJehun Lim <jehun.lim@samsung.com>
Tue, 22 Dec 2015 08:19:35 +0000 (17:19 +0900)
committerJehun Lim <jehun.lim@samsung.com>
Tue, 22 Dec 2015 09:50:55 +0000 (18:50 +0900)
Change-Id: I8b79af93a8c6e10f0bc3bd0d06284ee89dad91a0
Signed-off-by: Jehun Lim <jehun.lim@samsung.com>
src/util/listmgr.c

index 74c411a..daa6d23 100644 (file)
@@ -880,12 +880,12 @@ bool listmgr_update_play_info(struct listmgr *lmgr, app_media_info *info)
 
        if (!info) {
                if (lmgr->show_play_info) {
-                       if (lmgr->play_info == lmgr->focused)
-                               lmgr->focused = _get_box_first_item(lmgr->box);
-
                        elm_box_unpack(lmgr->box, lmgr->play_info);
                        evas_object_hide(lmgr->play_info);
                        lmgr->show_play_info = EINA_FALSE;
+
+                       if (lmgr->play_info == lmgr->focused)
+                               lmgr->focused = _get_box_first_item(lmgr->box);
                }
                return true;
        }