Fix AppControl spec
[apps/osp/Gallery.git] / src / GlFileListForm.cpp
index e2cbac3..93a6457 100644 (file)
@@ -178,7 +178,7 @@ FileListForm::OnActionPerformed(const Control& source, int actionId)
                pDataList->Construct();
                pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_CAMERA_ALLOW_SWITCH), new (std::nothrow) String(APPCONTROL_DATA_TRUE));
                __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_CAMERA, APPCONTROL_OPERATION_ID_CREATE_CONTENT,
-                               new (std::nothrow) String(APPCONTROL_MIME_IMAGE_JPG), pDataList, null);
+                               null, new (std::nothrow) String(APPCONTROL_MIME_IMAGE_JPG), pDataList, null);
                break;
        }
        default:
@@ -274,8 +274,7 @@ FileListForm::SetTitleText(const String& titleText)
 void
 FileListForm::OnSlideSettingPopUpItemSelected(int index)
 {
-
-       if ( __pPopUp != NULL)
+       if (__pPopUp != NULL)
        {
                __pPopUp->SetShowState(false);
        }
@@ -297,7 +296,6 @@ FileListForm::OnSlideSettingPopUpItemSelected(int index)
                pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_PATH), (Object*)pArrayList);
 
                __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_IMAGE, APPCONTROL_OPERATION_ID_VIEW,null, pDataList, null);
-
        }
        else if (index == 1) // go to settingsForm
        {
@@ -305,6 +303,5 @@ FileListForm::OnSlideSettingPopUpItemSelected(int index)
                TryReturnVoid(pSceneManager != null, "[%s] fail to get SceneManager", GetErrorMessage(GetLastResult()));
 
                pSceneManager->GoForward(ForwardSceneTransition(IDSCN_SETTING_MAIN));
-
        }
 }