1. popup shouldn't be activated if the view is not activated.
2. deactivate() returns an error if the popup state is not activated.
Change-Id: Ieb56a5152c96c56ab7fb646b2ab14d4981ace4fd
static int _updatePopup(UiPopup *popup)
{
+ if (popup->getView()->getState() != UI_VIEW_STATE_ACTIVATE)
+ return TIZEN_ERROR_NOT_PERMITTED;
+
Elm_Win *win = popup->getBase();
if (!win) return TIZEN_ERROR_NOT_PERMITTED;
int UiPopup::deactivate()
{
+ if (this->isActivated() == false)
+ return TIZEN_ERROR_NOT_PERMITTED;
+
Elm_Popup *popup = this->getContent();
if (!popup) {
LOGE("Content is not set! = UiPopup(%p)", this);