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
This commit is contained in:
randypfohl
2023-09-19 09:17:25 -07:00
parent f17b59bb19
commit 03d29305ca

View File

@@ -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