From 0918c7cb712637c42b4a5aa3584a2c09e8e391aa Mon Sep 17 00:00:00 2001 From: Anirudh Gupta Date: Fri, 20 Dec 2019 14:14:51 +0000 Subject: [PATCH] sm8150-common: DeviceSettings: FPSInfoService: Switch to isDreaming check The isDozing check was dependend on this commit: https://review.aosip.dev/c/AOSIP/platform_frameworks_base/+/10485 The commit isn't needed on Android 10 (read comments) and switching to the regular AOSP check makes more sense and works the exact same. Signed-off-by: Anirudh Gupta Signed-off-by: Anirudh Gupta --- .../src/com/aosip/device/DeviceSettings/FPSInfoService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DeviceSettings/src/com/aosip/device/DeviceSettings/FPSInfoService.java b/DeviceSettings/src/com/aosip/device/DeviceSettings/FPSInfoService.java index 0ec51ad0..ee5844bc 100644 --- a/DeviceSettings/src/com/aosip/device/DeviceSettings/FPSInfoService.java +++ b/DeviceSettings/src/com/aosip/device/DeviceSettings/FPSInfoService.java @@ -282,7 +282,7 @@ public class FPSInfoService extends Service { private boolean isDozeMode() { try { - if (mDreamManager != null && mDreamManager.isDozing()) { + if (mDreamManager != null && mDreamManager.isDreaming()) { return true; } } catch (RemoteException e) {