Prevent pop action when effect on going. 37/68837/4
authorWoochan Lee <wc0917.lee@samsung.com>
Tue, 10 May 2016 05:43:36 +0000 (14:43 +0900)
committerWoochan Lee <wc0917.lee@samsung.com>
Thu, 12 May 2016 04:17:18 +0000 (13:17 +0900)
Change-Id: I97eeb8decf4731019d1df8b830ce90393287de19

src/lib/efl/mobile/ui_view.cpp
src/lib/interface/ui_iface_viewmgr.cpp

index 3cbc0c75f998ad501ded352546557e1c245ae0d1..6bbd8a22c9cf3c4904c0f75a5165faa94dd85547 100644 (file)
@@ -88,10 +88,10 @@ bool ui_view_impl::on_back()
 {
        //If any popup is activated, deactivate the popup first.
        if (this->deactivate_popup(true))
-               {
+       {
                return false;
+       }
 
-               }
        if (this->menu)
        {
                if (this->menu->is_activated())
index 36a59647b9a987fd50c6293032ec68f97f4d5496..bbe825457a9ab7679d363ceffe4a209df1b2fcd8 100644 (file)
@@ -248,6 +248,14 @@ ui_iface_view *ui_iface_viewmgr_impl::push_view(ui_iface_view *view)
 
 bool ui_iface_viewmgr_impl::pop_view()
 {
+       //last page to be popped.
+       ui_iface_view*view = this->view_list.back();
+
+       if (view->get_event_block())
+       {
+               return false;
+       }
+
        //FIXME: No more view?
        if (this->get_view_count() == 0)
        {
@@ -268,8 +276,6 @@ bool ui_iface_viewmgr_impl::pop_view()
                return true;
        }
 
-       //last page to be popped.
-       ui_iface_view*view = this->view_list.back();
        view->on_deactivate();
        this->set_event_block(view, true);