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

Commit 65b44e78 authored by Daichi Hirono's avatar Daichi Hirono
Browse files

Fix NPE when calling Session#addToDisplayWithoutInputChannel

Bug: 77658328
Test: None
Change-Id: I633c5a32fc969987bd5302753a83bd5253876e2d
parent 743d42d2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@ import android.util.MergedConfiguration;
import android.util.Slog;
import android.view.Display;
import android.view.DisplayCutout;
import android.view.DisplayCutout.ParcelableWrapper;
import android.view.IWindow;
import android.view.IWindowId;
import android.view.IWindowSession;
@@ -218,7 +219,7 @@ class Session extends IWindowSession.Stub implements IBinder.DeathRecipient {
            int viewVisibility, int displayId, Rect outContentInsets, Rect outStableInsets) {
        return mService.addWindow(this, window, seq, attrs, viewVisibility, displayId,
                new Rect() /* outFrame */, outContentInsets, outStableInsets, null /* outOutsets */,
                null /* cutout */, null /* outInputChannel */);
                new ParcelableWrapper() /* cutout */, null /* outInputChannel */);
    }

    @Override