Commit f7dbfbbf authored by Ludovic Fauvet's avatar Ludovic Fauvet

audio view: handle back button

parent 5fd49b3e
......@@ -27,6 +27,7 @@
#include "common.h"
#include "system_storage.h"
#include "ui/utils.h"
#include "ui/interface.h"
#include "ui/views/audio_view.h"
#include "ui/views/list_view.h"
......@@ -77,6 +78,9 @@ create_audio_list_type(view_sys *p_view_sys, audio_view_type type )
break;
}
// Purge the audio view naviframe when switching tabs
naviframe_clear(p_view_sys->nf_toolbar);
Evas_Object* p_list = p_view->pf_get_widget(p_view->p_sys);
Elm_Object_Item *it = elm_naviframe_item_push(p_view_sys->nf_toolbar, "", NULL, NULL, p_list, NULL);
elm_naviframe_item_title_enabled_set(it, EINA_FALSE, EINA_FALSE);
......@@ -183,6 +187,11 @@ audio_view_callback(view_sys *p_view_sys, interface_view_event event)
p_view_sys->p_overflow_menu = NULL;
return true;
}
if (naviframe_count(p_view_sys->nf_toolbar) > 1)
{
elm_naviframe_item_pop(p_view_sys->nf_toolbar);
return true;
}
return false;
default:
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment