Fixed Nabi issues N_SE-49016, N_SE-48879, N_SE-48597, N_SE-48815, N_SE-48813, N_SE...
[apps/osp/Internet.git] / src / IntEditHomePageForm.cpp
index 6af4c8b..88256ae 100644 (file)
@@ -120,6 +120,11 @@ EditHomePageForm::OnSceneDeactivated(const SceneId& currentSceneId, const SceneI
 void
 EditHomePageForm::OnFormBackRequested(Form& source)
 {
+       ArrayList* pArgList = null;
+       pArgList = new(std::nothrow) ArrayList();
+       pArgList->Construct();
+       pArgList->Add(*new(std::nothrow) String(CommonUtil::GetString(L"IDS_BR_SK_CANCEL")));
+       SceneManager::GetInstance()->GoBackward(BackwardSceneTransition(), pArgList);
 
 }
 
@@ -128,6 +133,7 @@ EditHomePageForm::OnActionPerformed(const Control& source, int actionId)
 {
        ArrayList* pArgList = null;
        pArgList = new(std::nothrow) ArrayList();
+       pArgList->Construct();
        switch(actionId)
        {
        case IDA_BUTTON_DONE:
@@ -139,8 +145,8 @@ EditHomePageForm::OnActionPerformed(const Control& source, int actionId)
 
                bool ret = false;
                bool flag = false;
-               String firstPattern(L"((https?|ftp|gopher|telnet|file|notes|ms-help):((//)|(\\\\))+[\w\d:#@%/;$()~_?\+-=\\\.&]*)");
-               String secondPattern(L"^[A-Za-z0-9\.\+-:#@%/;$~?]+\\.[A-Za-z0-9!\+-=:#@%/;$~()_?\\\.&]{2,}$");   // URL of type  abc.com (i.e without protocol in front of it)
+               String firstPattern(L"((https?|ftp|gopher|telnet|file|notes|ms-help):((//)|(\\\\))+[\w\d:#@%/;$()~_?\+-=\\\.&]*)");//[\w\d:#@%/;$()~_?\+-=\\\.&]*
+               String secondPattern(L"^[A-Za-z0-9\.\+-:#@%/;$~?]+\\.[A-Za-z0-9 !\+-=:#@%/;$~()_?\\\.&]{2,}$");   // URL of type  abc.com (i.e without protocol in front of it)
                RegularExpression firstRegex;
                RegularExpression secondRegex;
 
@@ -180,7 +186,7 @@ EditHomePageForm::OnActionPerformed(const Control& source, int actionId)
                        else
                        {
                                // show pop up , not a valid URL
-                               String msg = CommonUtil::GetString(L"IDS_BR_POP_INVALIDADDRESS");
+                               String msg = CommonUtil::GetString(L"IDS_COM_POP_INVALID_URL");
                                CreateMessage(msg);
                        }
                }