Remove the popup when app is in background 52/13952/1
authorRahul varna <rahul.varna@samsung.com>
Tue, 10 Dec 2013 10:58:37 +0000 (16:28 +0530)
committerRahul varna <rahul.varna@samsung.com>
Tue, 10 Dec 2013 10:58:54 +0000 (16:28 +0530)
Change-Id: I7c32f966869b3cb38b04faa25ae8d9d6f20a757c
Signed-off-by: Rahul varna <rahul.varna@samsung.com>
project/src/Camera/CameraCaptureForm.cpp
project/src/Recorder/VideoRecorderForm.cpp

index 1a28386..b1cdf87 100644 (file)
@@ -3672,6 +3672,7 @@ CameraCaptureForm::OnBackground(void)
        {
                FreeResources();
        }
+       DeleteAllPopups();
        ClearErrorPopup();
        __background = true;
 }
@@ -3792,6 +3793,10 @@ CameraCaptureForm::DeleteAllPopups(void)
        DeletePopup(&__pPopupZoom);
        __pZoomLevelSlider = null;
 
+       HidePopUp(__pPopupFlashMode);
+       DeletePopup(&__pPopupFlashMode);
+       __pPopupFlashMode = null;
+
        ShowFooterItems();
 }
 
index 9c7a006..6fa211c 100644 (file)
@@ -4996,6 +4996,7 @@ VideoRecorderForm::OnBackground(void)
                AppLog("VideoRecorderForm::OnBackground setting");
                FreeResources();
        }
+       DeleteAllPopups();
        ClearErrorPopup();
        __pProgress->SetValue(0);
 }