int __selectedItemIndexForRename;\r
int __selectedItemIndexForDelete;\r
\r
+ int __selectedItemIndex;\r
+\r
MemoryType __SelectedTab;\r
MemoryType __previouFormTab;\r
\r
TryCatch(r == E_SUCCESS,,"copy file failed");
percentage = percentage + count;
+ long long int x = percentageComplete;
+
+
percentageComplete = (percentage * 100) / (toatalsize);
- AppLogDebug("precentage result %lld %lld",percentageComplete,percentage);
-
- __fileManagingingResult = FILE_MANAGING_RESULT_CURRENT_STATUS;
- pArg = new (std::nothrow) ArrayList();
- pArg->Construct();
- pFileManagingResult = new (std::nothrow) Integer(__fileManagingingResult);
- pFileManagedCounter = new (std::nothrow) Integer(__fileManagedCounter);
- pTotalFileCount = new (std::nothrow) Integer(__pListOfFiles->GetCount());
- pPercentageCompletion = new (std::nothrow)Integer(percentageComplete);
- pArg->Add(pFileManagingResult);
- pArg->Add(pFileManagedCounter);
- pArg->Add(pTotalFileCount);
- pArg->Add(pPercentageCompletion);
- Application::GetInstance()->SendUserEvent(ID_COPY_COMPLETE, pArg);
+
+ if(x != percentageComplete)
+ {
+ AppLogDebug("precentage result %lld %lld",percentageComplete,percentage);
+ __fileManagingingResult = FILE_MANAGING_RESULT_CURRENT_STATUS;
+ pArg = new (std::nothrow) ArrayList();
+ pArg->Construct();
+ pFileManagingResult = new (std::nothrow) Integer(__fileManagingingResult);
+ pFileManagedCounter = new (std::nothrow) Integer(__fileManagedCounter);
+ pTotalFileCount = new (std::nothrow) Integer(__pListOfFiles->GetCount());
+ pPercentageCompletion = new (std::nothrow)Integer(percentageComplete);
+ pArg->Add(pFileManagingResult);
+ pArg->Add(pFileManagedCounter);
+ pArg->Add(pTotalFileCount);
+ pArg->Add(pPercentageCompletion);
+ Application::GetInstance()->SendUserEvent(ID_COPY_COMPLETE, pArg);
+ }
count = sourceFIle.Read(byteToWrite, BUFFER_SIZE_MAX);
}
const Tizen::Ui::Scenes::SceneId& nextSceneId)
{
DeviceManager::RemoveAllDeviceEventListeners();
+ __pSearchBar->RemoveKeypadEventListener(*this);
}
void
}
}
}
+
+ __selectedItemIndex = index;
return;
CATCH:
#else
contentType = ContentManagerUtil::CheckContentType(pFileDetails->GetFullFilePath());
- pCacheList = CacheManager::GetInstance()->GetCacheHashMap();
+ pCacheList = CacheManager::GetInstance()->GetCacheHashMap();
if (pFileDetails->IsDirectory() == true)
{
void
SearchForm::OnFileEventOccured(const unsigned long events,const Tizen::Base::String & path, const unsigned int eventId)
{
+ bool cacheKeyStatus = false;
+ HashMap* pCacheList = null;
+ DirectoryEntry* pCurrentEntry = null;
+
+ String cachePath;
+
+ ArrayList* pCurrentList = null;
+
if ((events & FILE_EVENT_TYPE_CREATE) || (events & FILE_EVENT_TYPE_DELETE) || (events & FILE_EVENT_TYPE_MOVED_FROM) || (events & FILE_EVENT_TYPE_MOVED_TO ))
{
__backFromAppControl = true;
+
+ //changes added for Nabi issue # N_SE-38472
+ if ( (events & FILE_EVENT_TYPE_DELETE) || (events & FILE_EVENT_TYPE_MOVED_FROM))
+ {
+ pCacheList = CacheManager::GetInstance()->GetCacheHashMap();
+ if (pCacheList != null)
+ {
+ if (__isSearchCompleted == false)
+ {
+ if (__isSearchStarted == true)
+ pCurrentList = __pSearchedContentList;
+ else
+ pCurrentList = __pContentListFromLastView;
+ }
+ else
+ pCurrentList = __pSearchedContentList;
+
+ if( pCurrentList )
+ {
+ pCurrentEntry = static_cast<DirectoryEntry*>(pCurrentList->GetAt(__selectedItemIndex));
+ if (pCurrentEntry != null)
+ {
+ cachePath = pCurrentEntry->GetFullFilePath();
+ }
+ cacheKeyStatus = pCacheList->ContainsKey(cachePath);
+ if (cacheKeyStatus)
+ {
+ CacheManager::GetInstance()->RemoveCacheEntry(cachePath);
+ }
+ }
+ }
+ }
}
+ __selectedItemIndex =-1;
}
void
String delim(L"/");
String token;
String fullPath;
- String folderName(L"Search ");
+ String folderName;
+
+ AppResource::GetInstance()->GetString(L"IDS_MF_SK3_SEARCH", folderName);
+
+ folderName.Append(L" ");
fullPath = FolderNavigationPresentationModel::GetCurrentPath();
case IDA_CANCEL_DELETION:
{
+ _isSelectAll = false;
+
if (_pDeleteConfirmationPopUp != null)
{
_pDeleteConfirmationPopUp->SetShowState(false);
{
HideFileProgressingPopup();
+ _isSelectAll = false;
+
if (_pFileManager != null)
_pFileManager->ForceStopWorkerThread();
//Set am ActionEventListener to the Footer
_pFooter->AddActionEventListener(*this);
_pFooter->SetBackButton();
+ _pFooter->SetItemEnabled(0, false);
+ _pFooter->SetItemEnabled(1, false);
_pFooter->SetBackButtonEnabled(true);
_pFooter->Invalidate(true);
}
if (folderCount ==0 && fileCount == 0)
{
_pFooter->SetItemEnabled(0, false);
- }
- else
- {
- _pFooter->SetItemEnabled(0, true);
- }
- if (fileCount == 0 )
- {
_pFooter->SetItemEnabled(1, false);
}
else
{
- _pFooter->SetItemEnabled(1, true);
+ _pFooter->SetItemEnabled(0, true);
+
+ if (fileCount != 0)
+ {
+ _pFooter->SetItemEnabled(1, true);
+ }
+ else
+ {
+ _pFooter->SetItemEnabled(1, false);
+ }
+
}
_pFooter->Invalidate(true);
String size;\r
pAppResource = Application::GetInstance()->GetAppResource();\r
\r
- float preciseFileSize = fileSize / MB_DIVISOR;\r
- if (preciseFileSize == 0)\r
+ float preciseFileSize = (float)fileSize / (float)MB_DIVISOR;\r
+\r
+ if ((int)preciseFileSize == 0.0)\r
{\r
- preciseFileSize = fileSize / KB_DIVISOR;\r
- if (preciseFileSize == 0)\r
+ preciseFileSize = (float)fileSize / (float)KB_DIVISOR;\r
+ if ((int)preciseFileSize == 0)\r
{\r
String bytes;\r
pAppResource->GetString(L"IDS_BYTES", bytes);\r