NABI issue resolution.
authorGAURAV JAIN <gaurav.j3@samsung.com>
Mon, 1 Apr 2013 13:10:27 +0000 (18:40 +0530)
committerGAURAV JAIN <gaurav.j3@samsung.com>
Mon, 1 Apr 2013 13:10:27 +0000 (18:40 +0530)
Change-Id: I559964f3797de62ed037aeb19c3efe75d89ae39d
Signed-off-by: GAURAV JAIN <gaurav.j3@samsung.com>
inc/MsgMediaTextExpandEditArea.h
inc/MsgMessageComposePanel.h
src/MsgAttachmentSavePopup.cpp
src/MsgComposerForm.cpp
src/MsgMediaTextExpandEditArea.cpp
src/MsgMessageComposePanel.cpp
src/MsgMmsDetailForm.cpp

index 8c99ad1..5441823 100644 (file)
@@ -76,6 +76,7 @@ protected:
        virtual void OnBoundsChanged(const Tizen::Graphics::Rectangle& oldRect, const Tizen::Graphics::Rectangle& newRect);\r
        // Form ComposeBaseControl\r
        virtual ComposeControlType GetControlType(void) const;\r
+       virtual result OnTerminating(void);\r
 \r
 private:\r
        Tizen::Graphics::Bitmap* __pBgBitmap;\r
index ac7bd51..14ccdfb 100644 (file)
@@ -53,7 +53,7 @@ public:
        // Constructor
        MessageComposePanel(void);
        // Destructor
-       ~MessageComposePanel(void);
+       virtual ~MessageComposePanel(void);
        // 2nd phase constructor
        result Construct(const Tizen::Base::String& resourceId);
        // New API
index 2cd2f33..7a68039 100644 (file)
@@ -162,7 +162,8 @@ AttachementSavePopup::Construct(void)
                // Adjust size and control position.\r
                Rectangle rect = GetClientAreaBounds();\r
                int newHeight = GetHeight() + increaseHeight;\r
-               Popup::SetBounds(0, ((rect.height - newHeight) / 2), GetWidth(), newHeight);\r
+               //Popup::SetBounds(0, ((rect.height - newHeight) / 2), GetWidth(), newHeight);\r
+               Popup::SetSize(Dimension(GetWidth(), GetHeight() + increaseHeight));\r
                pAttachmentsListview->SetSize(pAttachmentsListview->GetWidth(),\r
                                                                          pAttachmentsListview->GetHeight() + increaseHeight);\r
                Point pos = pCancelButton->GetPosition();\r
index e04ddda..920d6b5 100644 (file)
@@ -845,6 +845,7 @@ ComposerForm::OnKeypadOpened(Control& source)
        AppLogDebug("ENTER");
 
        Rectangle clientArea = GetClientAreaBounds();
+       AppLogDebug("client area height : %d",clientArea.height);
        if (__pMsgComposePanel != null && __pRecipientPanel)
        {
                __pMsgComposePanel->SetMaximumSize(Dimension(__pMsgComposePanel->GetWidth(), clientArea.height - __pRecipientPanel->GetHeight() + 1));
index 7c06f44..41689a1 100644 (file)
@@ -56,10 +56,6 @@ MediaTextExpandEditArea::~MediaTextExpandEditArea(void)
 {
        AppLogDebug("ENTER");
        // Remove temporary compose file.
-       if (__pMediaCntl && __isMediaNeedToRemove)
-       {
-               File::Remove(__pMediaCntl->GetMediaPath());
-       }
        if (__pBgBitmap)
        {
                delete __pBgBitmap;
@@ -450,6 +446,27 @@ MediaTextExpandEditArea::OnDraw(void)
        return r;
 }
 
+result
+MediaTextExpandEditArea::OnTerminating(void)
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+
+       // Remove temporary compose file.
+       if (__pMediaCntl && __isMediaNeedToRemove)
+       {
+               String tempFilePath(__pMediaCntl->GetMediaPath());
+               if(File::IsFileExist(tempFilePath))
+               {
+                  AppLogDebug("REMOVE FILE PATH: %S", tempFilePath.GetPointer());
+                  File::Remove(tempFilePath);
+               }
+       }
+       AppLogDebug("EXIT: %s", GetErrorMessage(GetLastResult()));
+       return r;
+}
+
 void
 MediaTextExpandEditArea::OnBoundsChanged(const Rectangle& oldRect, const Rectangle& newRect)
 {
index 7739868..8fc8477 100644 (file)
@@ -228,7 +228,7 @@ MessageComposePanel::CreatePage(const String& pageText)
                pComposePage->SetUpdateActionId(IDA_CHECK_COMPOSE_STATE);
                pComposePage->SetActionEventListener(*this);
                pComposePage->SetText(pageText);
-               pImageTextPanel->AddControl(*pComposePage);
+               pImageTextPanel->AddControl(pComposePage);
                __pScrollPanel->ScrollToBottom();
                if (__pSizeChangeListener)
                {
@@ -1590,7 +1590,7 @@ MessageComposePanel::ClearText(bool redraw)
        pDefaultPage->SetDeleteActionId(IDA_COMPOSE_DELETE_ATTACHEMENT);
        pDefaultPage->SetUpdateActionId(IDA_CHECK_COMPOSE_STATE);
        pDefaultPage->SetActionEventListener(*this);
-       pImageTextSlidePanel->AddControl(*pDefaultPage);
+       pImageTextSlidePanel->AddControl(pDefaultPage);
        if (redraw)
        {
                Draw(); // For immediate refresh, otherwise it will hide behind keypad
index 5ac6496..51d1313 100644 (file)
@@ -320,6 +320,8 @@ MmsDetailForm::OnUserEventReceivedN(RequestId requestId, IList* pArgs)
                }\r
        }\r
        break;\r
+       default:\r
+               break;\r
        }\r
        // Release resource\r
        if (pArgs)\r