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

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

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

This reverts commit 7a4ab528.

Reason for revert: <Potential culprit for b/389061737   - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted>

Change-Id: Ic3c76c3c17964de6fa1a7bc3f9a9143c41a3152d
parent 7a4ab528
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() {