solving N_SE-32998
authorDivya Darshini <d.darshini@samsung.com>
Tue, 9 Apr 2013 10:18:39 +0000 (15:48 +0530)
committerDivya Darshini <d.darshini@samsung.com>
Tue, 9 Apr 2013 10:18:39 +0000 (15:48 +0530)
 and N_SE-32999

Change-Id: If6bd5b4a1dceeb94b0ecb2b957e84db4c9e4e3d1

src/GlAllListEditorPanel.cpp

index f4d3afa..d66aa3b 100644 (file)
@@ -432,7 +432,43 @@ AllListEditorPanel::OnSceneActivatedN(const SceneId& previousSceneId,
        TryReturnVoid(__pFileListEditorForm != null, "[%s] fail to get SceneManager.", GetErrorMessage(GetLastResult()));
        __pPresentationModel->AddContentEventListener(__pFileListEditorForm);
 
-       if (previousSceneId == IDSCN_ALL_LIST)
+       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);
+               }
+
+               int checkedCount = GetItemCheckedCount();
+               String strTmp;
+
+               if (checkedCount == 0)
+               {
+                       strTmp = ResourceManager::GetString(L"IDS_ST_POP_NO_ITEMS_SELECTED");
+               }
+               else if (checkedCount == 1)
+               {
+                       strTmp = ResourceManager::GetString(L"IDS_VR_POP_1_ITEM_SELECTED");
+               }
+               else
+               {
+                       strTmp.Format(LENGTH_COUNT_LABEL,
+                                       ResourceManager::GetString(L"IDS_VR_POP_PD_ITEMS_SELECTED").GetPointer(), checkedCount);
+               }
+
+               __pLabelSelectCnt->SetText(strTmp);
+               __pLabelSelectCnt->RequestRedraw(true);
+               SetButtonState();
+       }
+       else if (previousSceneId == IDSCN_ALL_LIST)
        {
                ResetSelection();
        }