bug fix of system-server code about smack disable kernel and lowbat check routine
authorjy910.yun <jy910.yun@samsung.com>
Mon, 10 Jun 2013 05:54:31 +0000 (14:54 +0900)
committerjy910.yun <jy910.yun@samsung.com>
Mon, 10 Jun 2013 05:54:31 +0000 (14:54 +0900)
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
ss_device_change_handler.c

index acde084..0e8fe62 100755 (executable)
@@ -95,13 +95,13 @@ static int check_lowbat_charge_device(int bInserted)
        int bat_state = -1;
        int ret = -1;
        if (bInserted == 1) {
-               if (device_get_property(DEVICE_TYPE_POWER, PROP_POWER_CHARGE_NOW, &val) < 0) {
+               if (device_get_property(DEVICE_TYPE_POWER, PROP_POWER_CHARGE_NOW, &val) == 0) {
                        if (val == 1)
                                bChargeDeviceInserted = 1;
                        return 0;
                }
        } else if (bInserted == 0) {
-               if (device_get_property(DEVICE_TYPE_POWER, PROP_POWER_CHARGE_NOW, &val) < 0) {
+               if (device_get_property(DEVICE_TYPE_POWER, PROP_POWER_CHARGE_NOW, &val) == 0) {
                        if (val == 0 && bChargeDeviceInserted == 1) {
                                bChargeDeviceInserted = 0;
                                //low bat popup during charging device removing