Support localized/multi-resolution app icons 86/58486/3
authorJunghyun Yeon <jungh.yeon@samsung.com>
Mon, 1 Feb 2016 11:39:37 +0000 (20:39 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Tue, 2 Feb 2016 22:47:15 +0000 (07:47 +0900)
Changes applied at
[manifest-parser][app-installer][pkgmgr-info]

Change-Id: I89d2554681a459e2e5d9d40cd5fd00f1cac3785d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/common/step/step_parse_manifest.cc

index 4c13393..2bbdae9 100644 (file)
@@ -500,7 +500,13 @@ bool StepParseManifest::FillApplicationIconPaths(application_x* app,
     // Current implementation is just for compatibility.
     icon->text = strdup(text.c_str());
     icon->name = strdup(application_icon.path().c_str());
-    icon->lang = strdup(DEFAULT_LOCALE);
+    if (application_icon.lang().empty())
+      icon->lang = strdup(DEFAULT_LOCALE);
+    else
+      icon->lang = strdup(application_icon.lang().c_str());
+
+    if (!application_icon.dpi().empty())
+      icon->dpi = strdup(application_icon.dpi().c_str());
     app->icon = g_list_append(app->icon, icon);
   }
   return true;