From 2d0fd0780a75fc72da61345f9b98c317150d2c35 Mon Sep 17 00:00:00 2001 From: Jeremy Sim Date: Tue, 6 Feb 2024 17:15:26 +0800 Subject: [PATCH] Fix bug with portrait-fold devices animating app pairs launch wrongly This CL makes it so that isLeftRightSplit is correctly called instead of isLandscape when animating an app pair launch. Fixes: 318756992 Test: Manual Flag: ACONFIG com.android.wm.shell.enable_app_pairs TEAMFOOD Change-Id: Id766a3f9bd315abc277e36a118fd233156cf3898 --- .../com/android/quickstep/views/FloatingAppPairBackground.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/views/FloatingAppPairBackground.kt b/quickstep/src/com/android/quickstep/views/FloatingAppPairBackground.kt index 3a5873ba33..1c1e1674e5 100644 --- a/quickstep/src/com/android/quickstep/views/FloatingAppPairBackground.kt +++ b/quickstep/src/com/android/quickstep/views/FloatingAppPairBackground.kt @@ -115,7 +115,7 @@ class FloatingAppPairBackground( } override fun draw(canvas: Canvas) { - if (launcher.deviceProfile.isLandscape) { + if (launcher.deviceProfile.isLeftRightSplit) { drawLeftRightSplit(canvas) } else { drawTopBottomSplit(canvas)