Removed Hw Key checks
authorchitta ranjan <chitta.rs@samsung.com>
Mon, 24 Jun 2013 04:32:48 +0000 (13:32 +0900)
committerchitta ranjan <chitta.rs@samsung.com>
Mon, 24 Jun 2013 04:32:48 +0000 (13:32 +0900)
Change-Id: If87c9edbe647f701b621f9b5eb0648d39fbdd363
Signed-off-by: chitta ranjan <chitta.rs@samsung.com>
inc/MsgMessagesApp.h
src/MsgBaseForm.cpp
src/MsgComposerForm.cpp
src/MsgConversationForm.cpp
src/MsgMessagesApp.cpp

index e57db32..f0aedf1 100644 (file)
@@ -64,7 +64,6 @@ public:
         *  Allocator method , create instance of this class
         */
        static Tizen::App::UiApp* CreateInstance(void);
-       bool IsHwKeySupported(void);
 
 protected:
        // New API
@@ -96,9 +95,6 @@ protected:
        void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
 
 private:
-       void CheckHwKeySupport(void);
-
-private:
        RequestId __pClientAppRequestId;
        Tizen::App::AppCtrlResult __appCntlResult;
        bool __isApplicationRunning;
index 0b30d24..aa9cc17 100644 (file)
@@ -72,19 +72,21 @@ BaseForm::InitializeBase(void)
        SetOrientation(Tizen::Ui::ORIENTATION_PORTRAIT);\r
        result r = E_SUCCESS;\r
 \r
-       MessagesApp* pMessages = static_cast<MessagesApp*> (Application::GetInstance());\r
-\r
-       bool isHwKeySupported = false;\r
-       if (pMessages)\r
-       {\r
-               isHwKeySupported = pMessages->IsHwKeySupported();\r
-               AppLog("IsHWKeySupported = %d", pMessages->IsHwKeySupported());\r
-       }\r
+//     MessagesApp* pMessages = static_cast<MessagesApp*> (Application::GetInstance());\r
+//\r
+//     bool isHwKeySupported = false;\r
+//     if (pMessages)\r
+//     {\r
+//             isHwKeySupported = pMessages->IsHwKeySupported();\r
+//             AppLog("IsHWKeySupported = %d", pMessages->IsHwKeySupported());\r
+//     }\r
+//\r
+//     if (isHwKeySupported)\r
+//     {\r
+//             SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER);\r
+//     }\r
 \r
-       if (isHwKeySupported)\r
-       {\r
-               SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER);\r
-       }\r
+       SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER);\r
 \r
        Header* pHeader = GetHeader();\r
        if (pHeader)\r
index 509902e..9114194 100644 (file)
@@ -117,36 +117,36 @@ ComposerForm::OnIntializeHeader(Header& header)
        Application::GetInstance()->GetAppResource()->GetString(L"IDS_COM_POP_NEW_MESSAGE", strText);
        header.SetTitleText(strText);
 
-       MessagesApp* pMessages = static_cast<MessagesApp*> (Application::GetInstance());
-
-       bool isHwKeySupported = false;
-       if (pMessages)
-       {
-               isHwKeySupported = pMessages->IsHwKeySupported();
-               AppLog("IsHWKeySupported = %d", pMessages->IsHwKeySupported());
-       }
-
-       if (!isHwKeySupported)
-       {
-               // Set right button
-               ButtonItem buttonRightItem;
-               buttonRightItem.Construct(BUTTON_ITEM_STYLE_ICON, IDA_HEADER_BACK);
-               Bitmap* pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_HEADER_BACK);
-               buttonRightItem.SetIcon(BUTTON_ITEM_STATUS_NORMAL, pBitMap);
-               pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_HEADER_BACK_PRESSED);
-               buttonRightItem.SetIcon(BUTTON_ITEM_STATUS_PRESSED, pBitMap);
-               header.SetButton(BUTTON_POSITION_RIGHT, buttonRightItem);
-               // Set left button
-               ButtonItem btnLeft;
-               btnLeft.Construct(BUTTON_ITEM_STYLE_ICON, IDA_OPTION_TRAY_COMMAND);
-               pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_MORE);
-               btnLeft.SetIcon(BUTTON_ITEM_STATUS_NORMAL, pBitMap);
-               pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_MORE_PRESSED);
-               btnLeft.SetIcon(BUTTON_ITEM_STATUS_PRESSED, pBitMap);
-               header.SetButton(BUTTON_POSITION_LEFT, btnLeft);
-       }
-       else
-       {
+//     MessagesApp* pMessages = static_cast<MessagesApp*> (Application::GetInstance());
+//
+//     bool isHwKeySupported = false;
+//     if (pMessages)
+//     {
+//             isHwKeySupported = pMessages->IsHwKeySupported();
+//             AppLog("IsHWKeySupported = %d", pMessages->IsHwKeySupported());
+//     }
+
+//     if (!isHwKeySupported)
+//     {
+//             // Set right button
+//             ButtonItem buttonRightItem;
+//             buttonRightItem.Construct(BUTTON_ITEM_STYLE_ICON, IDA_HEADER_BACK);
+//             Bitmap* pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_HEADER_BACK);
+//             buttonRightItem.SetIcon(BUTTON_ITEM_STATUS_NORMAL, pBitMap);
+//             pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_HEADER_BACK_PRESSED);
+//             buttonRightItem.SetIcon(BUTTON_ITEM_STATUS_PRESSED, pBitMap);
+//             header.SetButton(BUTTON_POSITION_RIGHT, buttonRightItem);
+//             // Set left button
+//             ButtonItem btnLeft;
+//             btnLeft.Construct(BUTTON_ITEM_STYLE_ICON, IDA_OPTION_TRAY_COMMAND);
+//             pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_MORE);
+//             btnLeft.SetIcon(BUTTON_ITEM_STATUS_NORMAL, pBitMap);
+//             pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_MORE_PRESSED);
+//             btnLeft.SetIcon(BUTTON_ITEM_STATUS_PRESSED, pBitMap);
+//             header.SetButton(BUTTON_POSITION_LEFT, btnLeft);
+//     }
+//     else
+//     {
                ButtonItem btnRight;
                btnRight.Construct(BUTTON_ITEM_STYLE_ICON, IDA_OPTION_TRAY_COMMAND);
                Bitmap* pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_MORE);
@@ -154,7 +154,7 @@ ComposerForm::OnIntializeHeader(Header& header)
                pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_MORE_PRESSED);
                btnRight.SetIcon(BUTTON_ITEM_STATUS_PRESSED, pBitMap);
                header.SetButton(BUTTON_POSITION_RIGHT, btnRight);
-       }
+//     }
 
        AppLogDebug("EXIT: %s", GetErrorMessage(GetLastResult()));
        return;
@@ -653,7 +653,7 @@ ComposerForm::ShowMoreContextMenu(const Control& source)
        AppLogDebug("ENTER");
 
        result r = E_SUCCESS;
-       bool isHwKeySupported = false;
+//     bool isHwKeySupported = false;
        if (__pMoreContextMenu)
        {
                delete __pMoreContextMenu;
@@ -684,17 +684,17 @@ ComposerForm::ShowMoreContextMenu(const Control& source)
                __pMoreContextMenu->AddItem(strText, IDA_PAGE_DURATION);
        }
 
-       MessagesApp* pMessages = static_cast<MessagesApp*> (Application::GetInstance());
-       if (pMessages)
-       {
-               isHwKeySupported = pMessages->IsHwKeySupported();
-               AppLog("IsHWKeySupported = %d", pMessages->IsHwKeySupported());
-       }
-
-       if (isHwKeySupported)
-       {
+//     MessagesApp* pMessages = static_cast<MessagesApp*> (Application::GetInstance());
+//     if (pMessages)
+//     {
+//             isHwKeySupported = pMessages->IsHwKeySupported();
+//             AppLog("IsHWKeySupported = %d", pMessages->IsHwKeySupported());
+//     }
+//
+//     if (isHwKeySupported)
+//     {
                __pMoreContextMenu->SetAnchorPosition(Point((source.GetWidth() * 4 / 5) + MARGIN_80PX, source.GetHeight() + MARGIN_15PX));
-       }
+//     }
        __pMoreContextMenu->AddActionEventListener(*this);
        SendUserEvent(REQUEST_SET_FOCUS_TO_FORM, null);
        __pMoreContextMenu->SetShowState(true);
@@ -895,26 +895,26 @@ ComposerForm::OnKeypadOpened(Control& source)
 {
        AppLogDebug("ENTER");
 
-       MessagesApp* pMessages = static_cast<MessagesApp*> (Application::GetInstance());
-
-       bool isHwKeySupported = false;
-       if (pMessages)
-       {
-               isHwKeySupported = pMessages->IsHwKeySupported();
-               AppLog("IsHWKeySupported = %d", pMessages->IsHwKeySupported());
-       }
-
-       if (!Clipboard::GetInstance()->IsPopupVisible() && !isHwKeySupported)
-       {
-               GetHeader()->RemoveButtonAt(BUTTON_POSITION_RIGHT);
-               ButtonItem btnRight;
-               btnRight.Construct(BUTTON_ITEM_STYLE_ICON, IDA_BUTTON_DROP_DOWN);
-               Bitmap* pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_SIP_CLOSE);
-               btnRight.SetIcon(BUTTON_ITEM_STATUS_NORMAL, pBitMap);
-               pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_SIP_CLOSE_PRESS);
-               btnRight.SetIcon(BUTTON_ITEM_STATUS_PRESSED, pBitMap);
-               GetHeader()->SetButton(BUTTON_POSITION_RIGHT, btnRight);
-       }
+//     MessagesApp* pMessages = static_cast<MessagesApp*> (Application::GetInstance());
+//
+//     bool isHwKeySupported = false;
+//     if (pMessages)
+//     {
+//             isHwKeySupported = pMessages->IsHwKeySupported();
+//             AppLog("IsHWKeySupported = %d", pMessages->IsHwKeySupported());
+//     }
+//
+//     if (!Clipboard::GetInstance()->IsPopupVisible() && !isHwKeySupported)
+//     {
+//             GetHeader()->RemoveButtonAt(BUTTON_POSITION_RIGHT);
+//             ButtonItem btnRight;
+//             btnRight.Construct(BUTTON_ITEM_STYLE_ICON, IDA_BUTTON_DROP_DOWN);
+//             Bitmap* pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_SIP_CLOSE);
+//             btnRight.SetIcon(BUTTON_ITEM_STATUS_NORMAL, pBitMap);
+//             pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_SIP_CLOSE_PRESS);
+//             btnRight.SetIcon(BUTTON_ITEM_STATUS_PRESSED, pBitMap);
+//             GetHeader()->SetButton(BUTTON_POSITION_RIGHT, btnRight);
+//     }
 
        Rectangle clientArea = GetClientAreaBounds();
        AppLogDebug("client area height : %d",clientArea.height);
@@ -935,26 +935,26 @@ ComposerForm::OnKeypadClosed(Control& source)
 {
        AppLogDebug("ENTER");
 
-       MessagesApp* pMessages = static_cast<MessagesApp*> (Application::GetInstance());
-
-       bool isHwKeySupported = false;
-       if (pMessages)
-       {
-               isHwKeySupported = pMessages->IsHwKeySupported();
-               AppLog("IsHWKeySupported = %d", pMessages->IsHwKeySupported());
-       }
-       if (!isHwKeySupported)
-       {
-               //Hide drop-down button in header and display back button:
-               GetHeader()->RemoveButtonAt(BUTTON_POSITION_RIGHT);
-               ButtonItem btnRight;
-               btnRight.Construct(BUTTON_ITEM_STYLE_ICON, IDA_HEADER_BACK);
-               Bitmap* pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_HEADER_BACK);
-               btnRight.SetIcon(BUTTON_ITEM_STATUS_NORMAL, pBitMap);
-               pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_HEADER_BACK_PRESSED);
-               btnRight.SetIcon(BUTTON_ITEM_STATUS_PRESSED, pBitMap);
-               GetHeader()->SetButton(BUTTON_POSITION_RIGHT, btnRight);
-       }
+//     MessagesApp* pMessages = static_cast<MessagesApp*> (Application::GetInstance());
+//
+//     bool isHwKeySupported = false;
+//     if (pMessages)
+//     {
+//             isHwKeySupported = pMessages->IsHwKeySupported();
+//             AppLog("IsHWKeySupported = %d", pMessages->IsHwKeySupported());
+//     }
+//     if (!isHwKeySupported)
+//     {
+//             //Hide drop-down button in header and display back button:
+//             GetHeader()->RemoveButtonAt(BUTTON_POSITION_RIGHT);
+//             ButtonItem btnRight;
+//             btnRight.Construct(BUTTON_ITEM_STYLE_ICON, IDA_HEADER_BACK);
+//             Bitmap* pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_HEADER_BACK);
+//             btnRight.SetIcon(BUTTON_ITEM_STATUS_NORMAL, pBitMap);
+//             pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_HEADER_BACK_PRESSED);
+//             btnRight.SetIcon(BUTTON_ITEM_STATUS_PRESSED, pBitMap);
+//             GetHeader()->SetButton(BUTTON_POSITION_RIGHT, btnRight);
+//     }
 
        Rectangle clientArea = GetClientAreaBounds();
        AppLogDebug("clientArea : %d", clientArea.height);
index 017b86c..591f99d 100644 (file)
@@ -320,43 +320,43 @@ ConversationForm::SetViewModeHeader(Header& header)
        headerLeftItem.SetText(GetTitleText());
        header.AddItem(headerLeftItem);
 
-       MessagesApp* pMessages = static_cast<MessagesApp*> (Application::GetInstance());
-
-       bool isHwKeySupported = false;
-       if (pMessages)
-       {
-               isHwKeySupported = pMessages->IsHwKeySupported();
-               AppLog("IsHWKeySupported = %d", pMessages->IsHwKeySupported());
-       }
-
-       if (!isHwKeySupported)
-       {
-               ButtonItem btnRight;
-               btnRight.Construct(BUTTON_ITEM_STYLE_ICON, IDA_BACK_CMD);
-               Bitmap* pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_HEADER_BACK);
-               btnRight.SetIcon(BUTTON_ITEM_STATUS_NORMAL, pBitMap);
-               pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_HEADER_BACK_PRESSED);
-               btnRight.SetIcon(BUTTON_ITEM_STATUS_PRESSED, pBitMap);
-               header.SetButton(BUTTON_POSITION_RIGHT, btnRight);
-
-               ButtonItem btnLeft;
-               btnLeft.Construct(BUTTON_ITEM_STYLE_ICON, IDA_OPTION_TRAY_COMMAND);
-               pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_MORE);
-               btnLeft.SetIcon(BUTTON_ITEM_STATUS_NORMAL, pBitMap);
-               pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_MORE_PRESSED);
-               btnLeft.SetIcon(BUTTON_ITEM_STATUS_PRESSED, pBitMap);
-               header.SetButton(BUTTON_POSITION_LEFT, btnLeft);
-       }
-       else
-       {
-               ButtonItem btnRight;
-               btnRight.Construct(BUTTON_ITEM_STYLE_ICON, IDA_OPTION_TRAY_COMMAND);
-               Bitmap* pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_MORE);
-               btnRight.SetIcon(BUTTON_ITEM_STATUS_NORMAL, pBitMap);
-               pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_MORE_PRESSED);
-               btnRight.SetIcon(BUTTON_ITEM_STATUS_PRESSED, pBitMap);
-               header.SetButton(BUTTON_POSITION_RIGHT, btnRight);
-       }
+//     MessagesApp* pMessages = static_cast<MessagesApp*> (Application::GetInstance());
+//
+//     bool isHwKeySupported = false;
+//     if (pMessages)
+//     {
+//             isHwKeySupported = pMessages->IsHwKeySupported();
+//             AppLog("IsHWKeySupported = %d", pMessages->IsHwKeySupported());
+//     }
+//
+//     if (!isHwKeySupported)
+//     {
+//             ButtonItem btnRight;
+//             btnRight.Construct(BUTTON_ITEM_STYLE_ICON, IDA_BACK_CMD);
+//             Bitmap* pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_HEADER_BACK);
+//             btnRight.SetIcon(BUTTON_ITEM_STATUS_NORMAL, pBitMap);
+//             pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_HEADER_BACK_PRESSED);
+//             btnRight.SetIcon(BUTTON_ITEM_STATUS_PRESSED, pBitMap);
+//             header.SetButton(BUTTON_POSITION_RIGHT, btnRight);
+//
+//             ButtonItem btnLeft;
+//             btnLeft.Construct(BUTTON_ITEM_STYLE_ICON, IDA_OPTION_TRAY_COMMAND);
+//             pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_MORE);
+//             btnLeft.SetIcon(BUTTON_ITEM_STATUS_NORMAL, pBitMap);
+//             pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_MORE_PRESSED);
+//             btnLeft.SetIcon(BUTTON_ITEM_STATUS_PRESSED, pBitMap);
+//             header.SetButton(BUTTON_POSITION_LEFT, btnLeft);
+//     }
+//     else
+//     {
+       ButtonItem btnRight;
+       btnRight.Construct(BUTTON_ITEM_STYLE_ICON, IDA_OPTION_TRAY_COMMAND);
+       Bitmap* pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_MORE);
+       btnRight.SetIcon(BUTTON_ITEM_STATUS_NORMAL, pBitMap);
+       pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_MORE_PRESSED);
+       btnRight.SetIcon(BUTTON_ITEM_STATUS_PRESSED, pBitMap);
+       header.SetButton(BUTTON_POSITION_RIGHT, btnRight);
+//     }
 
        //header.Draw();
        header.Invalidate(true);
@@ -929,27 +929,27 @@ ConversationForm::OnKeypadClosed(Control& source)
 {
        AppLogDebug("ENTER");
 
-       MessagesApp* pMessages = static_cast<MessagesApp*> (Application::GetInstance());
-
-       bool isHwKeySupported = false;
-       if (pMessages)
-       {
-               isHwKeySupported = pMessages->IsHwKeySupported();
-               AppLog("IsHWKeySupported = %d", pMessages->IsHwKeySupported());
-       }
-
-       if (!isHwKeySupported)
-       {
-               //Hide drop-down button in header and display back button:
-               GetHeader()->RemoveButtonAt(BUTTON_POSITION_RIGHT);
-               ButtonItem btnRight;
-               btnRight.Construct(BUTTON_ITEM_STYLE_ICON, IDA_BACK_CMD);
-               Bitmap* pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_HEADER_BACK);
-               btnRight.SetIcon(BUTTON_ITEM_STATUS_NORMAL, pBitMap);
-               pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_HEADER_BACK_PRESSED);
-               btnRight.SetIcon(BUTTON_ITEM_STATUS_PRESSED, pBitMap);
-               GetHeader()->SetButton(BUTTON_POSITION_RIGHT, btnRight);
-       }
+//     MessagesApp* pMessages = static_cast<MessagesApp*> (Application::GetInstance());
+//
+//     bool isHwKeySupported = false;
+//     if (pMessages)
+//     {
+//             isHwKeySupported = pMessages->IsHwKeySupported();
+//             AppLog("IsHWKeySupported = %d", pMessages->IsHwKeySupported());
+//     }
+//
+//     if (!isHwKeySupported)
+//     {
+//             //Hide drop-down button in header and display back button:
+//             GetHeader()->RemoveButtonAt(BUTTON_POSITION_RIGHT);
+//             ButtonItem btnRight;
+//             btnRight.Construct(BUTTON_ITEM_STYLE_ICON, IDA_BACK_CMD);
+//             Bitmap* pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_HEADER_BACK);
+//             btnRight.SetIcon(BUTTON_ITEM_STATUS_NORMAL, pBitMap);
+//             pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_HEADER_BACK_PRESSED);
+//             btnRight.SetIcon(BUTTON_ITEM_STATUS_PRESSED, pBitMap);
+//             GetHeader()->SetButton(BUTTON_POSITION_RIGHT, btnRight);
+//     }
 
        //INFO: Resizing of Message compose panel bounds should be followed by Conversation view resizing.
        //Not the other way around as it will increase conversation view height
@@ -1003,27 +1003,27 @@ ConversationForm::OnKeypadOpened(Control& source)
 {
        AppLogDebug("ENTER");
 
-       MessagesApp* pMessages = static_cast<MessagesApp*> (Application::GetInstance());
-
-       bool isHwKeySupported = false;
-       if (pMessages)
-       {
-               isHwKeySupported = pMessages->IsHwKeySupported();
-               AppLog("IsHWKeySupported = %d", pMessages->IsHwKeySupported());
-       }
-
-       if (!Clipboard::GetInstance()->IsPopupVisible() && !isHwKeySupported)
-       {
-               //Hide Back button in header and display drop down button:
-               GetHeader()->RemoveButtonAt(BUTTON_POSITION_RIGHT);
-               ButtonItem btnRight;
-               btnRight.Construct(BUTTON_ITEM_STYLE_ICON, IDA_BUTTON_DROP_DOWN);
-               Bitmap* pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_SIP_CLOSE);
-               btnRight.SetIcon(BUTTON_ITEM_STATUS_NORMAL, pBitMap);
-               pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_SIP_CLOSE_PRESS);
-               btnRight.SetIcon(BUTTON_ITEM_STATUS_PRESSED, pBitMap);
-               GetHeader()->SetButton(BUTTON_POSITION_RIGHT, btnRight);
-       }
+//     MessagesApp* pMessages = static_cast<MessagesApp*> (Application::GetInstance());
+//
+//     bool isHwKeySupported = false;
+//     if (pMessages)
+//     {
+//             isHwKeySupported = pMessages->IsHwKeySupported();
+//             AppLog("IsHWKeySupported = %d", pMessages->IsHwKeySupported());
+//     }
+//
+//     if (!Clipboard::GetInstance()->IsPopupVisible() && !isHwKeySupported)
+//     {
+//             //Hide Back button in header and display drop down button:
+//             GetHeader()->RemoveButtonAt(BUTTON_POSITION_RIGHT);
+//             ButtonItem btnRight;
+//             btnRight.Construct(BUTTON_ITEM_STYLE_ICON, IDA_BUTTON_DROP_DOWN);
+//             Bitmap* pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_SIP_CLOSE);
+//             btnRight.SetIcon(BUTTON_ITEM_STATUS_NORMAL, pBitMap);
+//             pBitMap = BitmapUtility::GetInstance()->GetIcon(MSG_ICON_SIP_CLOSE_PRESS);
+//             btnRight.SetIcon(BUTTON_ITEM_STATUS_PRESSED, pBitMap);
+//             GetHeader()->SetButton(BUTTON_POSITION_RIGHT, btnRight);
+//     }
 
        Rectangle clientArea = GetClientAreaBounds();
        Rectangle prePanelBounds = __pMsgComposePanel->GetBounds();
@@ -1999,19 +1999,19 @@ ConversationForm::ShowMoreContextMenu(const Control& source)
                __pMoreContextMenu->AddItem(strText, IDA_PAGE_DURATION);
        }
 
-       MessagesApp* pMessages = static_cast<MessagesApp*> (Application::GetInstance());
-
-       bool isHwKeySupported = false;
-       if (pMessages)
-       {
-               isHwKeySupported = pMessages->IsHwKeySupported();
-               AppLog("IsHWKeySupported = %d", pMessages->IsHwKeySupported());
-       }
-
-       if (isHwKeySupported)
-       {
-               __pMoreContextMenu->SetAnchorPosition(Point((source.GetWidth() * 4 / 5) + MARGIN_80PX, source.GetHeight() + MARGIN_15PX));
-       }
+//     MessagesApp* pMessages = static_cast<MessagesApp*> (Application::GetInstance());
+//
+//     bool isHwKeySupported = false;
+//     if (pMessages)
+//     {
+//             isHwKeySupported = pMessages->IsHwKeySupported();
+//             AppLog("IsHWKeySupported = %d", pMessages->IsHwKeySupported());
+//     }
+//
+//     if (isHwKeySupported)
+//     {
+       __pMoreContextMenu->SetAnchorPosition(Point((source.GetWidth() * 4 / 5) + MARGIN_80PX, source.GetHeight() + MARGIN_15PX));
+//     }
        __pMoreContextMenu->AddActionEventListener(*this);
        __pMoreContextMenu->SetShowState(true);
        __pMoreContextMenu->Show();
index e92aaed..fccdb2f 100644 (file)
@@ -108,8 +108,6 @@ MessagesApp::OnAppInitializing(AppRegistry& appRegistry)
        }
        AppControlProviderManager::GetInstance()->SetAppControlProviderEventListener(this);
 
-       CheckHwKeySupport();
-
        AppLogDebug("EXIT: %s", GetErrorMessage(GetLastResult()));
        return true;
 }
@@ -884,17 +882,3 @@ MessagesApp::OnSettingChanged(String& key)
        return;
 }
 
-void
-MessagesApp::CheckHwKeySupport(void)
-{
-       AppLog("Enter");
-       bool isHwBackButtonExist = false;
-       Tizen::System::SystemInfo::GetValue("http://tizen.org/feature/input.keys.back", isHwBackButtonExist);
-       __isHwKeySupported = isHwBackButtonExist;
-}
-
-bool
-MessagesApp::IsHwKeySupported(void)
-{
-       return __isHwKeySupported;
-}