apply singleton to ui_app. 21/67421/1
authorHermet Park <hermet@hermet.pe.kr>
Tue, 26 Apr 2016 10:55:32 +0000 (19:55 +0900)
committerHermet Park <hermet@hermet.pe.kr>
Tue, 26 Apr 2016 10:55:32 +0000 (19:55 +0900)
ui_app should be one instance.

Change-Id: I697671ef97bff1717701b2e286ffa49c75623d45

src/include/efl/mobile/ui_app.h
src/lib/efl/mobile/ui_app.cpp

index f81dc89..1c7f53e 100644 (file)
@@ -24,7 +24,7 @@ namespace efl_viewmgr
 
 class ui_viewmgr;
 
-class ui_app
+class ui_app : public viewmgr::singleton<ui_app>
 {
 private:
        ui_viewmgr *viewmgr;
index f83b867..4b0d9b3 100644 (file)
@@ -109,8 +109,6 @@ void ui_app::on_orient_changed(app_event_info_h event_info)
 
 bool ui_app::on_create()
 {
-       LOGE("create!!");
-
        //FIXME: this scale value should be configurable.
        elm_app_base_scale_set(2.6);