Fix App-control Supports
authorTaejeong Lee <taejeong.lee@samsung.com>
Wed, 6 Mar 2013 07:43:50 +0000 (16:43 +0900)
committerGerrit Code Review <gerrit2@kim11>
Wed, 6 Mar 2013 11:52:03 +0000 (20:52 +0900)
 * wrt : Now, 'file' scheme will be ignored.

[Issue#]   N/A
[Bug]      Tizen app-control service doesn't works peroperly on wrt.
[Cause]    App-control info DB registeration routine was omitted.
[Solution] Registration routine was added.

Change-Id: Ia7e2404ae9291cbf7f0a6d26a3ce174fcd610549

src/view/common/view_logic_uri_support.cpp

index eb08e75..92374d2 100644 (file)
@@ -199,6 +199,14 @@ std::string getAppServiceUri(bundle *bundle, WidgetModel *widgetModel)
     std::vector<std::string> schemeParts = parseScheme(uri);
     std::string scheme = (schemeParts.empty()) ? "" : schemeParts[0];
 
+    std::string ignoreScheme = "file";
+
+    if (scheme == ignoreScheme)
+    {
+        LogInfo("exception : 'file' scheme is ignored.");
+        scheme = "";
+    }
+
     LogDebug("operation : " << operation);
     LogDebug("schemeType : " << scheme);
     LogDebug("mimetype : " << mime);