Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 248a7396 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Check for wallpaper service on DozeWallpaperState." into qt-qpr1-dev

parents e941f726 b849ed50
Loading
Loading
Loading
Loading
+13 −8
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.systemui.doze;

import android.annotation.Nullable;
import android.app.IWallpaperManager;
import android.content.Context;
import android.os.RemoteException;
@@ -37,6 +38,7 @@ public class DozeWallpaperState implements DozeMachine.Part {
    private static final String TAG = "DozeWallpaperState";
    private static final boolean DEBUG = Log.isLoggable(TAG, Log.DEBUG);

    @Nullable
    private final IWallpaperManager mWallpaperManagerService;
    private final DozeParameters mDozeParameters;
    private final BiometricUnlockController mBiometricUnlockController;
@@ -88,6 +90,7 @@ public class DozeWallpaperState implements DozeMachine.Part {

        if (isAmbientMode != mIsAmbientMode) {
            mIsAmbientMode = isAmbientMode;
            if (mWallpaperManagerService != null) {
                try {
                    long duration = animated ? StackStateAnimator.ANIMATION_DURATION_WAKEUP : 0L;
                    if (DEBUG) {
@@ -101,10 +104,12 @@ public class DozeWallpaperState implements DozeMachine.Part {
                }
            }
        }
    }

    @Override
    public void dump(PrintWriter pw) {
        pw.println("DozeWallpaperState:");
        pw.println(" isAmbientMode: " + mIsAmbientMode);
        pw.println(" hasWallpaperService: " + (mWallpaperManagerService != null));
    }
}