[TBT][sensor][Fix proximity behavior] 64/92864/1
authorso2.park <so2.park@samsung.com>
Wed, 19 Oct 2016 07:19:01 +0000 (16:19 +0900)
committerso2.park <so2.park@samsung.com>
Wed, 19 Oct 2016 07:19:01 +0000 (16:19 +0900)
Change-Id: Idcc166030db9afd4e9595d9b16cb237e4344a06f
Signed-off-by: so2.park <so2.park@samsung.com>
release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk
release/binary-x86/org.tizen.tbtcoreapp-1.0.0-i386.tpk
tbtcoreapp/src/view/tbt-sensor-view.c

index aeee8d5bde9cde2b45624a4af9ae789e2722fd6d..2c3401f11a32ce98678b35e9bb81419b1477d8c8 100644 (file)
Binary files a/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk and b/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk differ
index 4087c0168cf16206fa61f9f4eaaa6bf18ced0f75..9c4f3b4013049fd9cd9e1400b2e57e312bb661ff 100644 (file)
Binary files a/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-i386.tpk and b/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-i386.tpk differ
index f8fb1cee7ae5cc605348fe9532a944c783308458..33fbb5d47b4684310cb3db21f6b64ddb3f7cbc22 100644 (file)
@@ -720,7 +720,7 @@ static void genlist_sensor_value_items_update(sensor_view *view, float *values)
 
                float distance = values[0];
                DBG("Distance: %f %f %f ", distance, SENSOR_PROXIMITY_NEAR, SENSOR_PROXIMITY_FAR);
-               if(values[0] >= 1.0f)
+               if(values[0] == 0.0f)
                {
                        const char *file_path;
 
@@ -733,7 +733,7 @@ static void genlist_sensor_value_items_update(sensor_view *view, float *values)
 
                }
 
-               if(values[0] == 0.0f)
+               if (values[0] >= 1.0f)
                {
                        const char *file_path;