Title was changed
authorHeeJu Kang <mobum.kang@samsung.com>
Wed, 23 Jan 2013 06:37:37 +0000 (15:37 +0900)
committerHeeJu Kang <mobum.kang@samsung.com>
Wed, 23 Jan 2013 06:37:37 +0000 (15:37 +0900)
Change-Id: Ifd0a8bb2663e37dc77d6c71ced242f076a5b4ea0
Signed-off-by: HeeJu Kang <mobum.kang@samsung.com>
project/src/LiveboxViewerMainForm.cpp
project/src/ViewForm.cpp

index 1c056fd..3198472 100644 (file)
@@ -171,8 +171,11 @@ LiveboxViewerMainForm::OnListViewItemStateChanged(Tizen::Ui::Controls::ListView
                LiveboxProviderInfo* pProviderInfo = dynamic_cast<LiveboxProviderInfo*>(__pLiveboxProviderList->GetAt(index));
                AppAssert(pProviderInfo);
 
-               AppLog("%ls", pProviderInfo->GetDisplayName().GetPointer());
+               AppLog("Display name (%ls)", pProviderInfo->GetDisplayName().GetPointer());
+               AppLog("AppId (%ls)", pProviderInfo->GetAppId().GetPointer());
+               AppLog("Name (%ls)", pProviderInfo->GetName().GetPointer());
 
+               pList->Add(*(new (std::nothrow) String( pProviderInfo->GetDisplayName())));
                pList->Add(*(new (std::nothrow) String( pProviderInfo->GetAppId()) ));
                pList->Add(*(new (std::nothrow) String( pProviderInfo->GetName()) ));
 
@@ -214,7 +217,11 @@ LiveboxViewerMainForm::CreateItem (int index, int itemWidth)
        LiveboxProviderInfo* pProviderInfo = dynamic_cast<LiveboxProviderInfo*>(__pLiveboxProviderList->GetAt(index));
        if (pProviderInfo)
        {
-               pItem->AddElement(itemRect, ID_FORMAT_STRING, pProviderInfo->GetDisplayName()+" ("+pProviderInfo->GetAppId()+")", true);
+               String itemTitle(pProviderInfo->GetDisplayName());
+
+               AppLog("Item title (%ls)", itemTitle.GetPointer());
+
+               pItem->AddElement(itemRect, ID_FORMAT_STRING, itemTitle, true);
        }
 
        return pItem;
index 6564853..c86da80 100644 (file)
@@ -161,14 +161,17 @@ ViewForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, c
 {
        if (pArgs && (pArgs->GetCount() > 0))
        {
-               String* pAppId = dynamic_cast<String*>(pArgs->GetAt(0));
-               String* pLiveboxProviderName = dynamic_cast<String*>(pArgs->GetAt(1));
+               String* pDisplayName = dynamic_cast<String*>(pArgs->GetAt(0));
+               String* pAppId = dynamic_cast<String*>(pArgs->GetAt(1));
+               String* pLiveboxProviderName = dynamic_cast<String*>(pArgs->GetAt(2));
                if (pAppId != null && pLiveboxProviderName != null)
                {
+                       AppLog("%ls", pDisplayName->GetPointer());
                        AppLog("%ls", pAppId->GetPointer());
+                       AppLog("%ls", pLiveboxProviderName->GetPointer());
 
                        Header* pHeader = GetHeader();
-                       pHeader->SetTitleText(*pAppId);
+                       pHeader->SetTitleText(*pDisplayName);
 
                        CreateLiveboxView(*pAppId, *pLiveboxProviderName);
                }