static void dec_battery_charger_changed_cb(runtime_info_key_e key, void *data)
{
appdata_s *ad = (appdata_s *) data;
- if (key == RUNTIME_INFO_KEY_CHARGER_CONNECTED)
+ if (key == RUNTIME_INFO_KEY_CHARGER_CONNECTED) {
battery_icon_status_update(ad);
update_internal_decrypt_next_button_status(ad);
+ }
}
static void dec_battery_changed_cb(device_callback_e type, void *value, void *user_data)
{
appdata_s *ad = (appdata_s *) user_data;
- if (type == DEVICE_CALLBACK_BATTERY_CAPACITY)
+ if (type == DEVICE_CALLBACK_BATTERY_CAPACITY) {
battery_icon_status_update(ad);
update_internal_decrypt_next_button_status(ad);
+ }
}
void ode_check_decrypt_device_create_view(appdata_s *ad)
dlog_print(DLOG_ERROR, LOG_TAG, "battery_cb_register failed");
ui_app_exit();
}
-
+ update_internal_decrypt_next_button_status(ad);
snprintf(string, sizeof(string), __(status_text[0]), NEEDED_BATTERY_PERCENT);
check_msg = ode_create_textblock(encryption_check_layout, string, MSG_TEXT_STYLE);
elm_object_part_content_set(encryption_check_layout, "battery_text", check_msg);