if (lowbat_popup_option == LOWBAT_OPT_CHECK ||
lowbat_popup_option == LOWBAT_OPT_WARNING) {
if (active_noti) {
- _I("call add_notification(%s) for active noti", active_noti);
+ if (active_noti_on > 0) {
+ ret = remove_notification("BatteryLowCriticalNotiOff", active_noti_on);
+ if (ret < 0)
+ _E("Failed to launch remove_active_noti : %d", ret);
+ }
+
ret = add_notification(active_noti);
if (ret < 0)
_E("Failed to launch active_noti : %d", ret);
}
if (event_noti) {
- _I("call add_notification(%s) for event noti", event_noti);
+ if (event_noti_on > 0) {
+ ret = remove_notification("BatteryLowCriticalNotiOff", event_noti_on);
+ if (ret < 0)
+ _E("Failed to launch remove_event_noti : %d", ret);
+ }
+
ret = add_notification(event_noti);
if (ret < 0)
_E("Failed to launch event noti : %d", ret);
if (old_string == new_string)
return;
- if (event_noti_on > 0 ) {
+ if (event_noti_on > 0) {
ret = remove_notification("BatteryLowCriticalNotiOff", event_noti_on);
if (ret < 0)
_E("Failed to launch remove_event_noti : %d", ret);