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

Commit dee8bf0e authored by Craig Mautner's avatar Craig Mautner
Browse files

Create SurfaceSession before creating DimLayer.

Fixes "java.lang.IllegalArgumentException: session must not be null"

Change-Id: Id7e77a44e59e5169ed8944682ab79783631182dd
parent 2275c6c8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -733,6 +733,7 @@ public class WindowManagerService extends IWindowManager.Stub

        mPointerEventDispatcher = new PointerEventDispatcher(mInputManager.monitorInput(TAG));

        mFxSession = new SurfaceSession();
        mDisplayManager = (DisplayManager)context.getSystemService(Context.DISPLAY_SERVICE);
        mDisplayManager.registerDisplayListener(this, null);
        Display[] displays = mDisplayManager.getDisplays();
@@ -779,7 +780,6 @@ public class WindowManagerService extends IWindowManager.Stub
                | PowerManager.ON_AFTER_RELEASE, TAG);
        mHoldingScreenWakeLock.setReferenceCounted(false);

        mFxSession = new SurfaceSession();
        mAnimator = new WindowAnimator(this);

        initPolicy(UiThread.getHandler());