void moments_control_clear_button_list(void);
Eina_List * __t__get_moments_control_button_list(void);
+bool moments_control_get_do_not_disturb_popup_visible(void);
+bool moments_control_get_flight_mode_popup_visible(void);
+void moments_control_do_not_disturb_popup_close(void);
+void moments_control_flight_mode_popup_close(void);
+
#endif
#include "notification/noti_detail_view.h"
#include "notification/noti_time.h"
#include "moments/moments.h"
+#include "moments/moments_control_view.h"
#include "common_conf.h"
#include "test.h"
} else if (focused_page == main_info.clock_focus) {
if (moments_get_visible()) {
moments_hide();
- }
- else {
+ } else if (moments_control_get_do_not_disturb_popup_visible() == true) {
+ moments_control_do_not_disturb_popup_close();
+ } else if (moments_control_get_flight_mode_popup_visible() == true) {
+ moments_control_flight_mode_popup_close();
+ } else {
apps_show();
}
}
return popup;
}
+bool moments_control_get_do_not_disturb_popup_visible(void)
+{
+ if (s_info.do_not_disturb_popup != NULL && evas_object_visible_get(s_info.do_not_disturb_popup) == true)
+ return true;
+
+ return false;
+}
+
+bool moments_control_get_flight_mode_popup_visible(void)
+{
+ if (s_info.flight_mode_popup != NULL && evas_object_visible_get(s_info.flight_mode_popup) == true)
+ return true;
+
+ return false;
+}
static void __do_not_disturb_pressed_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
}
}
+void moments_control_do_not_disturb_popup_close(void)
+{
+ __do_not_disturb_popup_cancel_cb(NULL, NULL, NULL);
+}
+
+void moments_control_flight_mode_popup_close(void)
+{
+ __flight_mode_popup_cancel_cb(NULL, NULL, NULL);
+}
+
static void __flight_mode_popup_ok_cb(void *data, Evas_Object *obj, void *event_info)
{
if (evas_object_visible_get(s_info.flight_mode_popup) == false) {