Disable front camera if device doesnt support it:N_SE-51218
authorRahul Varna <rahul.varna@samsung.com>
Thu, 5 Sep 2013 09:25:05 +0000 (18:25 +0900)
committerRahul Varna <rahul.varna@samsung.com>
Thu, 5 Sep 2013 09:25:05 +0000 (18:25 +0900)
Change-Id: I38dd0c30bd67dd3e653ba113da8de492d6c448f6
Signed-off-by: Rahul Varna <rahul.varna@samsung.com>
project/src/Codec/VideoDecoderForm.cpp
project/src/Recorder/VideoRecorderForm.cpp
project/src/Recorder/VideoRecorderForm.h

index de2eca3..a53b6a6 100644 (file)
@@ -179,7 +179,6 @@ VideoDecoderForm::OnInitializing(void)
        int count = 0;
        Rectangle rect;
        bool modified = false;
-       bool isValidRect = false;
        Frame* pFrame = null;
 
        r = SetHeaderText(L"Video decoder");
index 72dcffb..ae6a097 100644 (file)
@@ -3049,7 +3049,7 @@ VideoRecorderForm::OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& sou
 
        Invalidate(true);
 
-       ShowFooterItems();
+       SetFotterItems();
 
        return;
 CATCH:
@@ -5774,7 +5774,7 @@ VideoRecorderForm::DeleteAllPopups(void)
 
        ClearSupportedCodecPopup();
 
-       ShowFooterItems();
+       SetFotterItems();
 }
 
 void
@@ -5865,11 +5865,3 @@ VideoRecorderForm::GetIndexFromValue(Tizen::Base::Collection::IList* pList, Tize
        AppLog("no matching for value = %d %d", value.width, value.height);
        return INIT;
 }
-
-void
-VideoRecorderForm::ShowFooterItems(void)
-{
-       EnableFooterItem(ID_SETTING, true);
-       EnableFooterItem(ID_TOGGLE_CAMERA_TYPE, true);
-       EnableFooterItem(ID_START, true);
-}
index 17f156c..62bc9c9 100644 (file)
@@ -178,7 +178,6 @@ private:
        void SetCurrentListViewType(int id);
        int GetIndexFromValue(Tizen::Base::Collection::IListT< int >* pList, int value) const;
        int GetIndexFromValue(Tizen::Base::Collection::IList* pList, Tizen::Graphics::Dimension& value) const;
-       void ShowFooterItems(void);
        void ShowError(result r, const char* pMethod, const char* pSrcfileName, int lineNo);
        result ShowErrorResult(result r, const char* pMethod, const char* pSrcfileName, int lineNo);
        result CreatePopUp(Popup** pPopupCtrl, String title, Tizen::Graphics::Dimension dimension, bool hasTitle);