Widget API : Bug fix 97/40197/2
authorSeungkeun Lee <sngn.lee@samsung.com>
Mon, 1 Jun 2015 05:43:40 +0000 (14:43 +0900)
committerSeungkeun Lee <sngn.lee@samsung.com>
Mon, 1 Jun 2015 06:09:39 +0000 (15:09 +0900)
 - App id quote related bug
 - Missing LoadManifestData bug

Change-Id: I5ef194d7f14f16a9f0aaef07fd995b9842f1284d

src/extension/widget/widget.cc

index b7afd3b..881a940 100755 (executable)
@@ -124,7 +124,7 @@ extern "C" int32_t XW_Initialize(XW_Extension extension,
   g_runtime->GetRuntimeVariableString(extension, "app_id", &res[0], 256);
   g_appid = std::string(res.begin(), res.end());
   if (g_appid.at(0) == '"') {
-    g_appid = g_appid.substr(1, g_appid.size()-2);
+    g_appid = g_appid.substr(1, strlen(g_appid.c_str())-2);
   }
 
   g_core->RegisterInstanceCallbacks(
@@ -132,6 +132,7 @@ extern "C" int32_t XW_Initialize(XW_Extension extension,
       [](XW_Instance /*instance*/){
         if (g_appdata.get() == NULL) {
           g_appdata.reset(new wrt::ApplicationData(g_appid));
+          g_appdata->LoadManifestData();
         }
         wrt::Widget::GetInstance()->Initialize(g_appdata.get());
       },