Battery level vconf should be updated regardless of capacity 49/229349/1
authorYoungjae Cho <y0.cho@samsung.com>
Tue, 31 Mar 2020 08:21:32 +0000 (17:21 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Tue, 31 Mar 2020 08:23:02 +0000 (17:23 +0900)
Change-Id: I71bdbd4423d87d7bc3277d7761c6f08f294ab477
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/battery/lowbat-handler.c

index 905717f..90a5f02 100644 (file)
@@ -601,10 +601,6 @@ static void change_lowbat_level(int bat_percent)
 {
        int prev, now, ret;
 
-       if (cur_bat_capacity == bat_percent &&
-               old_battery.charge_full == battery.charge_full)
-               return;
-
        ret = vconf_get_int(VCONFKEY_SYSMAN_BATTERY_LEVEL_STATUS, &prev);
        if (ret < 0) {
                _E("Failed to get vconf value for battery level status: %d", vconf_get_ext_errno());