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

Commit 51674b00 authored by Tracy Zhou's avatar Tracy Zhou
Browse files

Revert^2 "Check if toRotation != ROTATION_UNDEFINED before calling DisplayLayout.rotateTo"

This reverts commit 0a41f5c0.

Reason for revert: Original failure is unrelated. https://android-build.corp.google.com/abtd/run/L26500030008823191/ passed with this change

Bug: 389061737
Change-Id: Id35b5986f06c718309098f5ff5f7b2faa9172963
parent 0a41f5c0
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.wm.shell.appzoomout;

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

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

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

        mDisplayAreaOrganizer.registerOrganizer();
    }
@@ -135,8 +137,10 @@ 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() {