const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs)\r
{\r
AppLogDebug("ENTER");\r
+ Header* pHeader = GetHeader();\r
+ pHeader->AddActionEventListener(*this);\r
+\r
Footer* pFooter = GetFooter();\r
pFooter->AddActionEventListener(*this);\r
SetBackEventListner();\r
ContentPanel::OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId)\r
{\r
AppLogDebug("ENTER");\r
+ Header* pHeader = GetHeader();\r
+ pHeader->RemoveActionEventListener(*this);\r
+\r
Footer* pFooter = GetFooter();\r
pFooter->RemoveActionEventListener(*this);\r
RemoveBackEventListner();\r
__sceneId = IDSCN_ALL_LIST;
}
__pMainFrame->GoToInitialScene(__sceneId, __pDataList);
- if (__pDataList != null)
- {
- __pDataList->RemoveAll(true);
- delete __pDataList;
- __pDataList = null;
- }
+
AppLogDebug("EXIT");
return true;
// pBaseForm->OnUpdateContentList();
// }
// }
-
PlayerForm* pBaseForm = dynamic_cast<PlayerForm*>(pScene->GetForm());
if (pScene->GetSceneId() == IDSCN_PLAYER)
{
- if (pBaseForm)
+ if (pBaseForm && __pDataList != null)
{
pBaseForm->OnChangedContentList(__pDataList);
}
__pMainFrame->GoToInitialScene(pSceneManager->GetCurrentSceneId(), __pDataList);
}
- if (__pDataList != null)
- {
- __pDataList->RemoveAll(true);
- delete __pDataList;
- __pDataList = null;
- }
-
Frame* pFrame = GetFrameAt(0);
AppAssert(pFrame);
pFrame->SetEnabled(true);
{
__sceneId = IDSCN_ALL_LIST;
}
- __pMainFrame->GoToInitialScene(__sceneId, __pDataList);
+
+ if (__pMainFrame != null)
+ {
+ result r = __pMainFrame->GoToInitialScene(__sceneId, __pDataList);
+ if (r == E_SUCCESS)
+ {
+ __pDataList = null;
+ }
+ }
AppLogDebug("EXIT");
return;
}
sourceStr.Replace(original, replace);
// pContentPath = &sourceStr;
+ __pDataList = new (std::nothrow) ArrayList();
+ __pDataList->Construct();
+
ArrayList* pContentPathArrayList = new (std::nothrow) ArrayList();
pContentPathArrayList->Construct();
AppLogDebug("sourceStr : %ls", sourceStr.GetPointer());
pContentPathArrayList->Add((new (std::nothrow) String(sourceStr)));
- if (__pDataList == null)
- {
- __pDataList = new (std::nothrow) ArrayList();
- __pDataList->Construct();
- }
- else
- {
- __pDataList->RemoveAll(true);
- }
-
__pDataList->Add(pContentPathArrayList);
- __pDataList->Add(*(new Integer(0)));
+ __pDataList->Add(new Integer(0));
}
/*For multiple file path*/
-/* else if (pArgs != null && pArgs->GetCount() > 0)
+/* else if (pArgs != null && pArgs->GetCoun__pDataListt() > 0)
{
pContentPath = static_cast<const String*>(pArgs->GetValue(APPCONTROL_KEYFIELD_PATH));
}
AppLogDebug("ENTER");
AppLogDebug("EXIT");
return __operationId;
-}
\ No newline at end of file
+}