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

Commit f9d40f42 authored by Jeff Brown's avatar Jeff Brown
Browse files

Cure narcolepsy.

Bug: 7204211
Change-Id: I2c09abaad5d321cec6f62f7ca0ce00c3b61ee211
parent bc335457
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -25,7 +25,6 @@ import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.StatusBarManager;
import android.app.UiModeManager;
import android.content.ActivityNotFoundException;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
@@ -497,7 +496,8 @@ class UiModeManagerService extends IUiModeManager.Stub {
        sendConfigurationLocked();

        // If we did not start a dock app, then start dreaming if supported.
        if (!dockAppStarted && isScreenSaverEnabled() && isScreenSaverActivatedOnDock()) {
        if (category != null && !dockAppStarted
                && isScreenSaverEnabled() && isScreenSaverActivatedOnDock()) {
            Slog.i(TAG, "Activating dream while docked.");
            try {
                IDreamManager dreamManagerService = IDreamManager.Stub.asInterface(