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

Commit 4ab949d7 authored by Prince Donkor's avatar Prince Donkor Committed by Automerger Merge Worker
Browse files

Merge "Null checking window before starting dream" into tm-qpr-dev am: 3ca388e8

parents 4a3044d1 3ca388e8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1409,6 +1409,10 @@ public class DreamService extends Service implements Window.Callback {
                            // Request the DreamOverlay be told to dream with dream's window
                            // parameters once the window has been attached.
                            mDreamStartOverlayConsumer = overlay -> {
                                if (mWindow == null) {
                                    Slog.d(TAG, "mWindow is null");
                                    return;
                                }
                                try {
                                    overlay.startDream(mWindow.getAttributes(), mOverlayCallback,
                                            mDreamComponent.flattenToString(),