[Call UI] Fix issue with hanging end call after turning off display with proximity... 56/79156/1 submit/tizen/20160708.120737
authorIgor Olshevskyi <i.olshevskyi@samsung.com>
Fri, 8 Jul 2016 10:57:10 +0000 (13:57 +0300)
committerIgor Olshevskyi <i.olshevskyi@samsung.com>
Fri, 8 Jul 2016 10:57:10 +0000 (13:57 +0300)
Change-Id: I39384c948daf9af7f306c74605a03cc7e5b71851

src/callui-proximity-lock-manager.c

index 5acdb9a..3abdfc9 100644 (file)
@@ -125,7 +125,8 @@ static void __callui_proximity_lock_manager_cb(sensor_h sensor, sensor_event_s *
        callui_app_data_t *ad = _callui_get_app_data();
 
        if (value > 0) {
-               if (!_callui_display_is_turned_on(ad->display)) {
+               if (proximity_h->state == CALLUI_PLM_LCD_OFF) {
+                       dbg("proximity state: LCD is off");
                        _callui_display_set_control_state(ad->display, CALLUI_DISPLAY_ON);
                        proximity_h->state = CALLUI_PLM_LCD_ON;
                        if (proximity_h->unlock_cb) {