Change vconf key of lockscreen type. accepted/tizen_2.2/20131128.072632 submit/tizen_2.2/20131128.072415
authorhhh.kwon <hhh.kwon@samsung.com>
Wed, 27 Nov 2013 09:35:38 +0000 (18:35 +0900)
committerhhh.kwon <hhh.kwon@samsung.com>
Wed, 27 Nov 2013 09:36:22 +0000 (18:36 +0900)
Change-Id: I205ce4f64c520fd281c73dde1bf434a5bb454bda

src/util.c

index 22fa679..935db7b 100755 (executable)
@@ -592,12 +592,7 @@ int _app_reset(struct appdata *ad)
        }
 
        static int initted = 0;
-       if(ad->lock_type == 1) {
-               if(initted == 0) {
-                       ecore_idler_add(_init_widget_cb, ad);
-                       initted = 1;
-               }
-       } else if (ad->lock_type == 4) {
+       if (ad->lock_type == SETTING_SCREEN_LOCK_TYPE_SIMPLE_PASSWORD) {
                if(initted == 0) {
                        Ecore_X_Atom ATOM_PANEL_SCROLLABLE_STATE = 0;
                        unsigned int val[3];
@@ -618,6 +613,11 @@ int _app_reset(struct appdata *ad)
                        simple_password_layout_create(ad);
                        initted = 1;
                }
+       }else {
+               if(initted == 0) {
+                       ecore_idler_add(_init_widget_cb, ad);
+                       initted = 1;
+               }
        }
 
        return 0;