* limitations under the License.
*/
+#include <app.h>
#include <Elementary.h>
#include <app_debug.h>
#include <viewmgr.h>
{
struct view_update_data vdata;
- vdata.index = priv->playlist.cur;
+ if (viewmgr_active_view_count() > 1) {
+ vdata.index = priv->playlist.cur;
+ viewmgr_update_view(VIEW_BASE, UPDATE_FOCUS, &vdata);
+ }
- viewmgr_update_view(VIEW_BASE, UPDATE_FOCUS, &vdata);
viewmgr_pop_view();
+
+ if (viewmgr_active_view_count() == 0)
+ ui_app_exit();
}
static void _key_down(int id, void *data, Evas *e, Evas_Object *obj,
priv = data;
if (!strcmp(ev->keyname, KEY_BACK) ||
- !strcmp(ev->keyname, KEY_BACK_REMOTE)) {
+ !strcmp(ev->keyname, KEY_BACK_REMOTE))
_pop_view(priv);
- }
}
static void _list_set_focus(struct _priv *priv)
* limitations under the License.
*/
+#include <app.h>
#include <Elementary.h>
#include <app_debug.h>
#include <viewmgr.h>
priv->viewer.cur == VIEWER_VIDEO)
_player_stop(priv);
- vdata.index = priv->playlist.cur;
+ if (viewmgr_active_view_count() > 1) {
+ vdata.index = priv->playlist.cur;
+ viewmgr_update_view(VIEW_BASE, UPDATE_FOCUS, &vdata);
+ }
- viewmgr_update_view(VIEW_BASE, UPDATE_FOCUS, &vdata);
viewmgr_pop_view();
+
+ if (viewmgr_active_view_count() == 0)
+ ui_app_exit();
}
static void _timeout_cb(void *data, int type, void *ei)