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 <anirudhgupta109@gmail.com>
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
This commit is contained in:
Anirudh Gupta 2019-12-20 14:14:51 +00:00 committed by Anirudh Gupta
parent 1968e51a04
commit 0918c7cb71
1 changed files with 1 additions and 1 deletions

View File

@ -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) {