N_SE-36744 N_SE-36750 N_SE-36754 N_SE-36743
[apps/osp/MyFiles.git] / src / MfFileManageForm.cpp
index 4cbabd9..686d3d2 100644 (file)
@@ -486,6 +486,18 @@ FileManageForm::OnDeviceChange(ComponentType deviceType, const Tizen::Base::Stri
 
        if (state == unmounted || state == removed)
        {
+               if (_previousSceneId == IDSCN_CATEGORY_SEARCH_FORM)
+               {
+                       if (_pFolderEntryPM != null)
+                       {
+                               if (_pFolderEntryPM->GetDeviceListCount() > 1)
+                               {
+                                       SceneManager::GetInstance()->GoBackward(BackwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_RIGHT));
+                                       return;
+                               }
+                       }
+               }
+
                currentPath = FolderNavigationPresentationModel::GetCurrentPath();
                if (state == unmounted)
                {