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

Commit 03d29305 authored by randypfohl's avatar randypfohl
Browse files

Setting recentsView orientation to match recents activity orientation

Test: can no longer repro incorrect orientation when launching apps from all apps
      added logs to verify recents activity -> view were the same while rotating
      turned off auto rotate and verified state matched

Bug: 288984663
Bug: 301024104

Change-Id: I7fc3b47bff0a99756aaf877bf634e2d162838d6f
parent f17b59bb
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -32,7 +32,6 @@ import android.os.Build;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.view.Surface;

import androidx.annotation.Nullable;

@@ -130,7 +129,9 @@ public class LauncherRecentsView extends RecentsView<QuickstepLauncher, Launcher
    @Override
    public void reset() {
        super.reset();
        setLayoutRotation(Surface.ROTATION_0, Surface.ROTATION_0);

        int recentsActivityRotation = getPagedViewOrientedState().getRecentsActivityRotation();
        setLayoutRotation(recentsActivityRotation, recentsActivityRotation);
    }

    @Override