bool _bIsDirectoryEmpty;
bool _bBackFromAppControl;
bool _bIsDeleteFromContextSwipe;
+ bool _bIsFileEventOccured;
Tizen::Base::String _fileEventPath;
MemoryType _storageType;
{
if (previousSceneId == IDSCN_CREATE_FOLDER_FORM)
{
- if (!File::IsFileExist(__pathToRename))
+ if (File::IsFileExist(__pathToRename) == false)
{
-
if (__searchText.IsEmpty() == false)
StartSearch();
-
}
else
{
}
}
}
+ else
+ {
+ if (previousSceneId == IDSCN_SUB_DIRECTORY_FORM || previousSceneId == IDSCN_SUB_DIRECTORY_FORM1)
+ {
+ AppLogDebug("FileEvent has occured");
+ if (__searchText.IsEmpty() == false)
+ StartSearch();
+ }
+ }
}
void
_bIsDirectoryEmpty = false;
_bBackFromAppControl = false;
_bIsDeleteFromContextSwipe = false;
+ _bIsFileEventOccured = false;
+
+ _pathOfSelectedFile = L"";
_flagViewAsStatus = 0;
_indexToDelete = 0;
case IDA_DELETE_FILE:
{
HideDeleteConfirmationPopup();
-
if (_pDeleteConfirmationPopUp != null)
{
delete _pDeleteConfirmationPopUp;
{
_bIsDeleteFromContextSwipe = true;
+ if (_pFileEventManager != null)
+ {
+ _pFileEventManager->RemovePath(FolderNavigationPresentationModel::GetCurrentPath());
+ }
if (_pIconListViewContextMenu != null)
{
delete _pIconListViewContextMenu;
case IDA_ICONLISTVIEW_RENAME:
{
+
+ if (_pFileEventManager != null)
+ {
+ _pFileEventManager->RemovePath(FolderNavigationPresentationModel::GetCurrentPath());
+ }
+
if (_pIconListViewContextMenu != null)
{
delete _pIconListViewContextMenu;
{
_currentFileName.Clear();
_currentFileName = pDirStr->GetFileName();
+ _pathOfSelectedFile = pDirStr->GetFullFilePath();
}
}
_currentFileName.Clear();
_currentFileName = pDirStr->GetFileName();
+
+ _pathOfSelectedFile = pDirStr->GetFullFilePath();
_renameIndex = index;
_renameOrCreate = SELECT_RENAME;
//Load the Rename View of the item selected.
String delim(L"/");
String token;
String displayPath;
+ ArrayList* pArgs = null;
#if 0
AppLogDebug("Scene History");
bool searchHistory = CheckSearchHistory();
}
}
#endif
+ if (_bIsFileEventOccured == true)
+ {
+ //Create a dummy argument list to verify occurrence of File Event
+ pArgs = new (std::nothrow)ArrayList();
+ pArgs->Construct();
+
+ _bIsFileEventOccured = false;
+ }
+
if (pSceneManager != null)
- pSceneManager->GoBackward(BackwardSceneTransition(IDSCN_SEARCH_FORM, SCENE_TRANSITION_ANIMATION_TYPE_RIGHT), null);
+ {
+ pSceneManager->GoBackward(BackwardSceneTransition(IDSCN_SEARCH_FORM, SCENE_TRANSITION_ANIMATION_TYPE_RIGHT), pArgs);
+ }
}
else
{
case FILE_MANAGING_RESULT_DELETING_SUCCESS:
{
AppLogDebug("FILE DELETION SUCCESSFUL");
+ _bIsFileEventOccured = true;
_bIsDeleteFromContextSwipe = false;
HideFileProgressingPopup();
}
pAppRegistry = UiApp::App::GetInstance()->GetAppRegistry();
_pLongPressGestureDetector->AddLongPressGestureEventListener(*this);
+
+ if (_pathOfSelectedFile.IsEmpty() == false && File::IsFileExist(_pathOfSelectedFile) == false)
+ {
+ _bIsFileEventOccured = true;
+ }
if (_pIconListView != null)
{
_pIconListView->AddGestureDetector(*_pLongPressGestureDetector);
bool cacheKeyStatus = false;
String cachePath;
+ _bIsFileEventOccured = true;
if ((events & FILE_EVENT_TYPE_CREATE) || (events & FILE_EVENT_TYPE_MOVED_FROM) || (events & FILE_EVENT_TYPE_MOVED_TO ))
{
if ( events & FILE_EVENT_TYPE_MOVED_FROM)
if (pTmpBmp)
{
ImageBuffer::GetImageInfo(pRequest->FilePath, imgFormat, width, height);
- ImgBuffer.Construct(pRequest->FilePath,width, height, IMAGE_SCALING_METHOD_FAST_BILINEAR );
+ r = ImgBuffer.Construct(pRequest->FilePath,width, height, IMAGE_SCALING_METHOD_FAST_BILINEAR );
+ TryCatch(r == E_SUCCESS, , "ImageBuffer::Construct failed");
+
imgOrientation = ImgBuffer.GetExifOrientation();
+ TryCatch(GetLastResult() == E_SUCCESS, , "ImageBuffer::GetExifOrientation failed");
if (imgOrientation == EXIF_ORIENTATION_RIGHT_TOP ||
imgOrientation == EXIF_ORIENTATION_TOP_RIGHT )
else
{
r = ImgBuffer.Construct(pRequest->FilePath,THUMBNAIL_WIDTH, THUMBNAIL_HEIGHT, IMAGE_SCALING_METHOD_FAST_BILINEAR );
+ TryCatch(r == E_SUCCESS, , "ImageBuffer::Construct failed");
pRequest->pBitmap = ImgBuffer.GetBitmapN(BITMAP_PIXEL_FORMAT_ARGB8888, BUFFER_SCALING_NONE);
}