bool __isLoadingCompleted;
bool __isClipboardOpen;
bool __isKeyboardConnected;
+ bool __isCancelledClicked;
int __progressPercentage;
Tizen::Ui::Controls::Label* __pAddressbarBg;
__pAddressBackBtn = null;
__isClipboardOpen = false;
__isKeyboardConnected = false;
+ __isCancelledClicked = false;
}
Addressbar::~Addressbar(void)
{
__pAddressbarUrlField->HideKeypad();
__pListener->OnAddressCancelledClicked(*this);
+ __isCancelledClicked = true;
//SetAddressbarMode(ADDRESSBAR_MODE_LOADING_COMPLETE);
}
break;
return;
}
+// if(__isCancelledClicked == true)
+ {
+ if(__pAddressbarUrlField)
+ __pAddressbarUrlField->SetText(__displayUrl);
+ __editTextUrl = L"";
+ SetShowState(false);
+ if(__pListener != null)
+ {
+ __pListener->OnAddressBarKeypadClosed(*this);
+ }
+ }
+ __isCancelledClicked = false;
}
void
void
MainForm::OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus state)
{
- History* pHistory = static_cast < History* >(__pMostVisitedSites->GetAt(index));
- String url = pHistory->GetHistoryUrl();
- HistoryPresentationModel::GetInstance()->DeleteHistory(url);
- __pMostVisitedListView->UpdateList();
+ if(__pMostVisitedSites != null)
+ {
+ History* pHistory = static_cast < History* >(__pMostVisitedSites->GetAt(index));
+ if (pHistory != null)
+ {
+ String url = pHistory->GetHistoryUrl();
+
+ HistoryPresentationModel::GetInstance()->DeleteHistory(url);
+ __pMostVisitedListView->UpdateList();
+ }
+ }
}
void
{
AppLog("MainForm::OnOrientationChanged GetClientAreaBounds %d, %d",GetClientAreaBounds().width,GetClientAreaBounds().height);
int widthContextItem = 0;
+
+ if(__pWebViewer != null)
+ {
+ // this is added because if any text is selected on long press followed by on rotation we are hiding the context menu therefore we should release the text block also
+ __pWebViewer->ReleaseBlock();
+ }
+
if(__pFindWordControl != null)
ShowFindWordPanel(__pFindWordControl->GetShowState(), false);
if ( __pFooterLabel != null)