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

Commit 3ca388e8 authored by Prince Donkor's avatar Prince Donkor Committed by Android (Google) Code Review
Browse files

Merge "Null checking window before starting dream" into tm-qpr-dev

parents dd326938 0993fbd8
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(),