From 4e4b01b7b92b4ec6c18b15660bbd69658d02e8c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Sun, 11 Feb 2024 20:32:48 +0800 Subject: [PATCH] Rename `service.Sleep()` to `Pause()` --- app/src/main/java/io/nekohasekai/sfa/bg/BoxService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/nekohasekai/sfa/bg/BoxService.kt b/app/src/main/java/io/nekohasekai/sfa/bg/BoxService.kt index 208f776..27343ce 100644 --- a/app/src/main/java/io/nekohasekai/sfa/bg/BoxService.kt +++ b/app/src/main/java/io/nekohasekai/sfa/bg/BoxService.kt @@ -221,7 +221,7 @@ class BoxService( @RequiresApi(Build.VERSION_CODES.M) private fun serviceUpdateIdleMode() { if (Application.powerManager.isDeviceIdleMode) { - boxService?.sleep() + boxService?.pause() } else { boxService?.wake() }