Fixed issue 42617
[apps/osp/Gallery.git] / src / GlFileListPresentationModel.cpp
index 32f37fd..df34571 100644 (file)
@@ -1010,6 +1010,12 @@ FileListPresentationModel::MoveToContentFile(const ContentId& contentId, const S
        return r;
 }
 
+void
+FileListPresentationModel::ClearProviderId(void)
+{
+       __providerId.Clear();
+}
+
 result
 FileListPresentationModel::StartAppControl(const String& providerId, const String& operationId,
                const String* pUriData, const Tizen::Base::String* pMimeType, const HashMap* pDataList,
@@ -1017,8 +1023,11 @@ FileListPresentationModel::StartAppControl(const String& providerId, const Strin
 {
        AppLogDebug("ENTER");
        AppControl* pAc = AppManager::FindAppControlN(providerId, operationId);
-       __providerId.Clear();
+
+       AppLogDebug("rashmi b4(%ls)", __providerId.GetPointer());
+       ClearProviderId();
        __providerId.Append(providerId);
+       AppLogDebug("rashmi after(%ls)", __providerId.GetPointer());
 
        if (pAc == null)
        {
@@ -1610,8 +1619,9 @@ FileListPresentationModel::ClearImageCache(void)
 {
        AppLogDebug("FileListPresentationModel::ClearImageCache ++");
 
-       if(__pIconListViewCache != null && __providerId.Equals(APPCONTROL_PROVIDER_ID_IMAGE, false) == true)
+       if(__pIconListViewCache != null)
        {
+               AppLogDebug("rashmi __providerId(%ls)", __providerId.GetPointer());
                bool clearThumbnailReq = true;
                while(__pIconListViewCache->GetCount() != 0)
                {