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

Commit 616dc7ed authored by ELIYAZ MOMIN (xWF)'s avatar ELIYAZ MOMIN (xWF) Committed by Android (Google) Code Review
Browse files

Merge "Revert "Check if toRotation != ROTATION_UNDEFINED before calling...

Merge "Revert "Check if toRotation != ROTATION_UNDEFINED before calling DisplayLayout.rotateTo"" into main
parents c1722c61 0a41f5c0
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@

package com.android.wm.shell.appzoomout;

import static android.app.WindowConfiguration.ROTATION_UNDEFINED;
import static android.view.Display.DEFAULT_DISPLAY;

import android.app.ActivityManager;
@@ -101,7 +100,6 @@ public class AppZoomOutController implements RemoteCallable<AppZoomOutController

        mDisplayController.addDisplayWindowListener(mDisplaysChangedListener);
        mDisplayController.addDisplayChangingController(this);
        updateDisplayLayout(mContext.getDisplayId());

        mDisplayAreaOrganizer.registerOrganizer();
    }
@@ -137,10 +135,8 @@ public class AppZoomOutController implements RemoteCallable<AppZoomOutController
    public void onDisplayChange(int displayId, int fromRotation, int toRotation,
            @Nullable DisplayAreaInfo newDisplayAreaInfo, WindowContainerTransaction wct) {
        // TODO: verify if there is synchronization issues.
        if (toRotation != ROTATION_UNDEFINED) {
        mDisplayAreaOrganizer.onRotateDisplay(mContext, toRotation);
    }
    }

    @Override
    public Context getContext() {