Change-Id: Ie0629fb269c633b24f6be8afbad93c8e4b223f40
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
#include <hal/device/hal-device-power.h>
#include "shared/log.h"
-#include "ambient-mode.h"
#include "core.h"
#include "poll.h"
#include "lock-detector.h"
#include <dlfcn.h>
#include <hal/device/hal-display.h>
-#include "ambient-mode.h"
#include "power/power-suspend.h"
#include "core/log.h"
#include "shared/devices.h"
#include <system/syscommon-plugin-deviced-display-interface.h>
#include <linux/input.h>
-#include "ambient-mode.h"
#include "core.h"
#include "poll.h"
#include "device-interface.h"
if (current_state_in_on())
return false;
- if (display_panel_get_dpms_cached_state() == DPMS_ON) {
- if (ambient_get_state() == false)
- return false;
- }
+ if (display_panel_get_dpms_cached_state() == DPMS_ON)
+ return false;
if (flags & LCD_ON_BY_POWER_KEY)
broadcast_lcdon_by_powerkey();