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

Commit 7b996ceb authored by Mady Mellor's avatar Mady Mellor
Browse files

Fix sysui gradle build

Test: sysui gradle builds & installs
Change-Id: Icf4ba5be67f3e557a2758c98999ab9faad6b13c1
parent 19690df0
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -262,11 +262,11 @@ public class PipTaskOrganizer extends TaskOrganizer implements ShellTaskOrganize

        if (!PipUtils.hasSystemFeature(context)) {
            Log.w(TAG, "Device not support PIP feature");
            return;
        }
        } else {
            mTaskOrganizer.addListener(this, WINDOWING_MODE_PINNED);
            displayController.addDisplayWindowListener(this);
        }
    }

    public Handler getUpdateHandler() {
        return mUpdateHandler;
+32 −35
Original line number Diff line number Diff line
@@ -219,16 +219,13 @@ public class PipController implements Pip, PipTaskOrganizer.PipTransitionCallbac
            PipTaskOrganizer pipTaskOrganizer,
            WindowManagerShellWrapper windowManagerShellWrapper
    ) {
        if (mInitialized) {
            return;
        }

        if (!mInitialized) {
            mInitialized = true;
            mContext = context;
            mPipNotification = new PipNotification(context, this);
            mPipBoundsHandler = pipBoundsHandler;
        // Ensure that we have the display info in case we get calls to update the bounds before the
        // listener calls back
            // Ensure that we have the display info in case we get calls to update the bounds
            // before the listener calls back
            final DisplayInfo displayInfo = new DisplayInfo();
            context.getDisplay().getDisplayInfo(displayInfo);
            mPipBoundsHandler.onDisplayInfoChanged(displayInfo);
@@ -247,8 +244,7 @@ public class PipController implements Pip, PipTaskOrganizer.PipTransitionCallbac
            mLastOrientation = initialConfig.orientation;
            loadConfigurationsAndApply(initialConfig);

        mMediaSessionManager =
                (MediaSessionManager) mContext.getSystemService(Context.MEDIA_SESSION_SERVICE);
            mMediaSessionManager = mContext.getSystemService(MediaSessionManager.class);
            mWindowManagerShellWrapper = windowManagerShellWrapper;
            try {
                mWindowManagerShellWrapper.addPinnedStackListener(mPinnedStackListener);
@@ -256,6 +252,7 @@ public class PipController implements Pip, PipTaskOrganizer.PipTransitionCallbac
                Log.e(TAG, "Failed to register pinned stack listener", e);
            }
        }
    }

    private void loadConfigurationsAndApply(Configuration newConfig) {
        if (mLastOrientation != newConfig.orientation) {