mirror of
https://github.com/oplus-giulia-dev/android_hardware_oplus
synced 2025-11-04 05:45:34 +08:00
doze: Fix compilation on V QPR2
Change-Id: If1693603abc530af3b761b53396f2dda8225177e
This commit is contained in:
committed by
Bruno Martins
parent
18ef7dd547
commit
a6435e6bc0
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2021-2024 The LineageOS Project
|
||||
* Copyright (C) 2021-2025 The LineageOS Project
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
@@ -13,6 +13,7 @@ import android.hardware.SensorManager
|
||||
import android.os.PowerManager
|
||||
import android.os.SystemClock
|
||||
import android.util.Log
|
||||
import android.view.Display
|
||||
|
||||
import java.util.concurrent.Executors
|
||||
|
||||
@@ -39,7 +40,10 @@ class PickupSensor(
|
||||
if (Utils.isPickUpSetToWake(context)) {
|
||||
wakeLock.acquire(WAKELOCK_TIMEOUT_MS)
|
||||
powerManager.wakeUpWithProximityCheck(
|
||||
SystemClock.uptimeMillis(), PowerManager.WAKE_REASON_GESTURE, TAG
|
||||
SystemClock.uptimeMillis(),
|
||||
PowerManager.WAKE_REASON_GESTURE,
|
||||
TAG,
|
||||
Display.DEFAULT_DISPLAY
|
||||
)
|
||||
} else {
|
||||
Utils.launchDozePulse(context)
|
||||
|
||||
Reference in New Issue
Block a user