[Tizen-submit] 18555: Changes to Tizen:Mobile/osp-app-controls

noreply at tizen.org noreply at tizen.org
Wed Dec 11 05:11:22 GMT 2013


Hi,
Sunwook Bae have made the following changes to osp-app-controls in project Tizen:Mobile. Please review and accept ASAP.

Thank You,

[This message was auto-generated]

---

Request: #18555

  submit:       Tizen:Mobile:build/osp-app-controls(cleanup) -> Tizen:Mobile


Message:
Submitter: Sunwook Bae <sunwook45.bae at samsung.com>
Comments: Sync with tizen_2.2.1
Git project: platform/framework/native/app-controls
Tag: submit/tizen/20131211.051116
Commit: 26215819c586ddcdffa7eade0d19dac4006133c4 modified code which add path key and string value internally

State:   new        2013-12-11T05:08:55 tizenrobot
Comment: <no comment>
spec files:
-----------
--- osp-app-controls.spec
+++ osp-app-controls.spec
@@ -1,8 +1,8 @@
 Name:		osp-app-controls
+VCS:   platform/framework/native/app-controls#26215819c586ddcdffa7eade0d19dac4006133c4
 Summary:	osp application controls library
 Version:	1.2.2.1
 Release:	1
-VCS:     platform/framework/native/app-controls#submit/tizen/20131023.040659-0-g95410c85cd07f41a8309fda71cd2aa99d9e61c1e
 Group:		System/Libraries
 License:	Apache-2.0
 Source0:	%{name}-%{version}.tar.gz

other changes:
--------------

++++++ osp-app-controls-1.2.2.1.tar.gz
--- src/camera-app-control/CameraAppControlDllEntry.cpp
+++ src/camera-app-control/CameraAppControlDllEntry.cpp
@@ -165,7 +165,23 @@
 	case BUNDLE_TYPE_STR_ARRAY:
 		{
 			ArrayList* pArray = _AppMessageImpl::GetValueArrayN(pBundle, SERVICE_DATA_SELECTED);
-			pResult->Add(new (std::nothrow) String(L"path"), pArray);
+			if (pArray)
+			{
+				const int count = pArray->GetCount();
+				if (count > 0)
+				{
+					String tmp;
+
+					tmp = * static_cast<String*>(pArray->GetAt(0));
+					for (int i = 1; i < count; i++)
+					{
+						tmp.Append(L';');
+						tmp.Append(* static_cast<String*>(pArray->GetAt(i)));
+					}
+
+					pResult->Add(new (std::nothrow) String(L"path"), new (std::nothrow) String(tmp));
+				}
+			}
 		}
 		break;
 	case BUNDLE_TYPE_NONE:
--- src/filemanager-app-control/FileManagerAppControlDllEntry.cpp
+++ src/filemanager-app-control/FileManagerAppControlDllEntry.cpp
@@ -159,18 +159,18 @@
 
 	type = bundle_get_type(pBundle, SERVICE_DATA_SELECTED);
 	switch (type)
-	{   
+	{
 	case BUNDLE_TYPE_STR:
-		{   
+		{
 			const char* pFile = appsvc_get_data(pBundle, SERVICE_DATA_SELECTED);
 			if (pFile)
-			{   
+			{
 				pResult->Add(new (std::nothrow) String(L"path"), new (std::nothrow) String(pFile));
-			}   
-		}   
+			}
+		}
 		break;
 	case BUNDLE_TYPE_STR_ARRAY:
-		{   
+		{
 			ArrayList* pArray = _AppMessageImpl::GetValueArrayN(pBundle, SERVICE_DATA_SELECTED);
 			if (pArray)
 			{
@@ -182,19 +182,19 @@
 					tmp = * static_cast<String*>(pArray->GetAt(0));
 					for (int i = 1; i < count; i++)
 					{
-						tmp += L';';
-						tmp = * static_cast<String*>(pArray->GetAt(i));
+						tmp.Append(L';');
+						tmp.Append(* static_cast<String*>(pArray->GetAt(i)));
 					}
 
 					pResult->Add(new (std::nothrow) String(L"path"), new (std::nothrow) String(tmp));
 				}
 			}

Please refer to OBS webUI for more details about this SR.


More information about the Tizen-submit mailing list