solving issue: N_SE-26346
authorDivya Darshini <d.darshini@samsung.com>
Wed, 27 Mar 2013 05:06:20 +0000 (10:36 +0530)
committerDivya Darshini <d.darshini@samsung.com>
Wed, 27 Mar 2013 05:06:20 +0000 (10:36 +0530)
Change-Id: Ibdbb05d2ffe5d09968daf8a5a26e5e1329a8dde0

src/GlAllListEditorPanel.cpp

index 4f1a316..ed8dd3f 100644 (file)
@@ -479,6 +479,17 @@ AllListEditorPanel::OnSceneActivatedN(const SceneId& previousSceneId,
        if (previousSceneId == IDSCN_ALL_LIST_SELECTION)
        {
                ResetSelection();
+               if (pArgs != null && pArgs->GetCount() > 0)
+               {
+                       IList* pSeletedIndexList = pArgs;
+                       int loopCount = pSeletedIndexList->GetCount();
+                       for (int i = 0; i < loopCount; ++i)
+                       {
+                               int index = static_cast<Integer*>(pSeletedIndexList->GetAt(i))->ToInt();
+                               __pContentIconListView->SetItemChecked(index, true);
+                       }
+                       __pContentIconListView->RequestRedraw(true);
+               }
        }
        else if (previousSceneId == IDSCN_ALL_LIST)
        {
@@ -494,7 +505,7 @@ AllListEditorPanel::OnSceneActivatedN(const SceneId& previousSceneId,
 
        pFileListEditorForm->SetTitleText(ResourceManager::GetString(L"IDS_COM_BODY_EDIT"));
        
-       if (pArgs != null && pArgs->GetCount() > 0)
+       if (pArgs != null && pArgs->GetCount() > 0 && previousSceneId != IDSCN_ALL_LIST_SELECTION)
        {
                String* pDirectory = static_cast<String*>(pArgs->GetAt(0));
                if (pDirectory != null && pDirectory->GetLength() > 0)