aquire the proximity sensor during calls for an hour, not 10 minutes

This commit is contained in:
tibbi
2021-11-29 00:20:05 +01:00
parent ec18e6abbf
commit 68043badbd

View File

@ -330,7 +330,7 @@ class CallActivity : SimpleActivity() {
if (!config.disableProximitySensor && (proximityWakeLock == null || proximityWakeLock?.isHeld == false)) {
val powerManager = getSystemService(Context.POWER_SERVICE) as PowerManager
proximityWakeLock = powerManager.newWakeLock(PowerManager.PROXIMITY_SCREEN_OFF_WAKE_LOCK, "com.simplemobiletools.dialer.pro:wake_lock")
proximityWakeLock!!.acquire(10 * MINUTE_SECONDS * 1000L)
proximityWakeLock!!.acquire(60 * MINUTE_SECONDS * 1000L)
}
}
}