"IDS_COM_SK_RESTART_ABB"
};
+static void remove_other_powerkey_popups(const struct popup_ops *ops)
+{
+ if (ops != &powerkey_ops)
+ unload_simple_popup(&powerkey_ops);
+
+ if (ops != &poweroff_ops)
+ unload_simple_popup(&poweroff_ops);
+
+ if (ops != &restart_ops)
+ unload_simple_popup(&restart_ops);
+}
+
static int restart_launch(bundle *b, const struct popup_ops *ops)
{
+ remove_other_powerkey_popups(ops);
return 0;
}
static int powerkey_list_launch(bundle *b, const struct popup_ops *ops)
{
+ unregister_handlers(ops);
+ remove_other_powerkey_popups(ops);
register_handlers(ops);
return 0;
}
static int poweroff_launch(bundle *b, const struct popup_ops *ops)
{
+ remove_other_powerkey_popups(ops);
register_handlers(ops);
return 0;
}