move to appcore_get_rotation_state in the last of app_create 2.0alpha master 2.0_alpha submit/2.0alpha/20130208.225535 submit/master/20120920.151041
authorJinwoo Nam <jwoo.nam@samsung.com>
Sat, 8 Sep 2012 09:24:55 +0000 (18:24 +0900)
committerJinwoo Nam <jwoo.nam@samsung.com>
Sat, 8 Sep 2012 09:24:55 +0000 (18:24 +0900)
client/ug-client.c
packaging/ui-gadget-1.spec

index 11f385f..5ed81e9 100755 (executable)
@@ -235,14 +235,14 @@ static int app_create(void *data)
 
        lang_changed(ad);
 
-       if (appcore_get_rotation_state(&rm) == 0)
-               rotate(rm, ad);
-
        appcore_set_rotation_cb(rotate, ad);
        appcore_set_event_callback(APPCORE_EVENT_LOW_MEMORY, low_memory, ad);
        appcore_set_event_callback(APPCORE_EVENT_LOW_BATTERY, low_battery, ad);
        appcore_set_event_callback(APPCORE_EVENT_LANG_CHANGE, lang_changed, ad);
 
+       if (appcore_get_rotation_state(&rm) == 0)
+               rotate(rm, ad);
+
        return 0;
 }
 
index 8d050ae..684febb 100755 (executable)
@@ -2,7 +2,7 @@
 Name:       ui-gadget-1
 Summary:    UI Gadget Library
 Version:    0.1.0
-Release:    10
+Release:    11
 Group:      TO_BE/FILLED_IN
 License:    TO BE FILLED IN
 Source0:    %{name}-%{version}.tar.gz