private:
virtual Evas_Object *onCreate(Evas_Object *parent) override;
virtual void onCreated() override;
- virtual void onPageAttached(Ui::NavigatorPage *page) override;
Evas_Object *createContent(Evas_Object *parent);
Evas_Object *createButton(Evas_Object *parent);
"changed", makeCallback(&InputView::onTimeChanged), this);
}
-void InputView::onPageAttached(Ui::NavigatorPage *page)
-{
- page->setStyle("empty");
-}
-
Evas_Object *InputView::createContent(Evas_Object *parent)
{
Evas_Object *layout = elm_layout_add(parent);
{
if (m_Alarm.getId()) {
AlarmConsumer::getInstance().deleteDataItem(m_Alarm.getId(), nullptr);
- }
- char buffer[TOAST_BUFFER_SIZE];
- snprintf(buffer, sizeof(buffer), _("WDS_ALM_TPOP_ALARM_ALREADY_SET_FOR_PS_ABB"),
- Common::formatTime(m_Alarm.getDate()));
+ auto popup = new Common::AlarmSetPopup(m_Alarm);
+ popup->create(getEvasObject());
+ popup->show();
+ } else {
+ char buffer[TOAST_BUFFER_SIZE];
+ snprintf(buffer, sizeof(buffer), _("WDS_ALM_TPOP_ALARM_ALREADY_SET_FOR_PS_ABB"),
+ Common::formatTime(m_Alarm.getDate()));
- auto popup = new Ui::Toast();
- popup->create(getEvasObject());
- popup->setText(buffer);
- popup->show();
+ auto popup = new Ui::Toast();
+ popup->create(getEvasObject());
+ popup->setText(buffer);
+ popup->show();
+ }
getPage()->close();
}