X-Git-Url: http://review.tizen.org/git/?p=framework%2Fappfw%2Fui-gadget-1.git;a=blobdiff_plain;f=client%2Fug-client.c;h=5ed81e913b981602903fcb7db65c35cfa350d4f2;hp=11f385fa3c25f13248848836aeab34650cba74b7;hb=b842de1bc36da1ac6e2eb6bc806b2488a82e0f20;hpb=960022eec0500b27ec1dc8532a48b95bee574ef2 diff --git a/client/ug-client.c b/client/ug-client.c index 11f385f..5ed81e9 100755 --- a/client/ug-client.c +++ b/client/ug-client.c @@ -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; }