fix TC failure
authorGwangbok Kim <gwangbok.kim@samsung.com>
Mon, 1 Jul 2013 09:01:13 +0000 (18:01 +0900)
committerGwangbok Kim <gwangbok.kim@samsung.com>
Mon, 1 Jul 2013 10:26:38 +0000 (19:26 +0900)
Change-Id: I41b0dc22346b7760d702e92ffe3b9e6e41ee08bc
Signed-off-by: Gwangbok Kim <gwangbok.kim@samsung.com>
src/FSclReminder.cpp
src/FScl_ContactImpl.cpp

index f10d60c..d4d001f 100644 (file)
@@ -135,6 +135,16 @@ Reminder::GetMinutesBefore(void) const
 String
 Reminder::GetSoundFile(void) const
 {
+       if (_AppInfo::GetApiVersion() == _API_VERSION_2_0 && _AppInfo::IsOspCompat())
+       {
+               String tmpFilePath;
+               _FileImpl::ConvertPhysicalToVirtualPath(__soundFilePath, tmpFilePath);
+
+               ClearLastResult();
+
+               return tmpFilePath;
+       }
+
        return __soundFilePath;
 }
 
index 42b9003..f780275 100644 (file)
@@ -481,6 +481,13 @@ _ContactImpl::GetValue(const ContactPropertyId id, String& value) const
        case CONTACT_PROPERTY_ID_RINGTONE:
                contacts_record_get_str_p(__contactHandle, _contacts_contact.ringtone_path, &pCharValue);
                value = pCharValue;
+
+               if (_AppInfo::GetApiVersion() == _API_VERSION_2_0 && _AppInfo::IsOspCompat())
+               {
+                       String temp;
+                       _FileImpl::ConvertPhysicalToVirtualPath(pCharValue, temp);
+                       value = temp;
+               }
                break;
        case CONTACT_PROPERTY_ID_THUMBNAIL:
                {