Add function to reset privilege check cache 09/235909/2
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 11 Jun 2020 02:37:34 +0000 (11:37 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 11 Jun 2020 02:41:38 +0000 (11:41 +0900)
Change-Id: I144f86e6e3e84aa21af2e5912467e6400c491367
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
inputmethod/include/inputmethod_private.h
inputmethod/src/inputmethod.cpp

index b30bb44..b4e1f24 100644 (file)
@@ -40,5 +40,7 @@ struct _ime_device_info {
        Ecore_IMF_Device_Subclass dev_subclass; /**< The device subclass */
 };
 
+void ime_privilege_cache_init();
+
 #endif /* __TIZEN_UIX_INPUTMETHOD_PRIVATE_H__ */
 
index 1bbc151..d379d93 100644 (file)
@@ -506,6 +506,12 @@ void CCoreEventCallback::on_set_optimization_hint(sclu32 hint)
         g_event_callback.optimization_hint_set((ime_optimization_hint_e)hint, g_event_callback.optimization_hint_set_user_data);
     }
 }
+
+void ime_privilege_cache_init()
+{
+    g_permission_allowed = false;
+    g_checked_privilege = false;
+}
 //LCOV_EXCL_STOP
 
 ime_error_e _check_privilege()