#include "GlAlbumListPresentationModel.h"
#include "GlAlbumRenameEventListener.h"
#include "GlContentUpdateEventListener.h"
+#include "GlFileListPresentationModel.h"
#include "GlGalleryApp.h"
#include "GlThumbnailEvent.h"
#include "GlThumbnailEventArg.h"
IAppControlResponseListener* pListener)
{
AppLogDebug("ENTER");
+ FileListPresentationModel::GetInstance()->ClearProviderId();
AppControl* pAc = AppManager::FindAppControlN(providerId, operationId);
if (pAc == null)
{
if (__pAlbumInfoList != null)
{
int outterLoopCount = __pAlbumInfoList->GetCount();
+ AppLogDebug("rashmi outterLoopCount(%d)", outterLoopCount);
for (int x = 0; x < outterLoopCount; ++x)
{
AlbumInfo* pAlbumInfo = static_cast<AlbumInfo*>(__pAlbumInfoList->GetAt(x));
int innerLoopCount = pAlbumInfo->GetContentIdCount();
+ AppLogDebug("rashmi innerLoopCount(%d)", innerLoopCount);
for (int i = 0; i < innerLoopCount; ++i)
{
if (i >= FOLDER_BITMAP_MAX)
{
pAlbumInfo->SetFolderThumnailBitmap(pThumbnailInfo->GetBitmapN());
pUpdateFolderIndex->Add(new (std::nothrow) Integer(x));
+ AppLogDebug("rashmi adding(%d)", x);
}
+ else
+ {
+ AppLogDebug("rashmi GetFolderThumnailBitmap is not null(%d)", innerLoopCount);
+ }
+ }
+ else
+ {
+ AppLogDebug("rashmi contetentid not same(%d)", innerLoopCount);
}
}
}
pListener = static_cast<IAlbumEventListener*>(pEnum->GetCurrent());
int loopCount = pUpdateFolderIndex->GetCount();
+ AppLogDebug("rashmi loopCount(%d)", loopCount);
+ // int loopCount = __pAlbumInfoList->GetCount();
for (int k = 0; k < loopCount; ++k)
{
Integer *pIndex = (Integer*)pUpdateFolderIndex->GetAt(k);
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,
{
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)
{
if(__pIconListViewCache != null && __providerId.Equals(APPCONTROL_PROVIDER_ID_IMAGE, false) == true)
{
+ AppLogDebug("rashmi __providerId(%ls)", __providerId.GetPointer());
bool clearThumbnailReq = true;
while(__pIconListViewCache->GetCount() != 0)
{