commit | 2d0fd0780a75fc72da61345f9b98c317150d2c35 | [log] [tgz] |
---|---|---|
author | Jeremy Sim <jeremysim@google.com> | Tue Feb 06 17:15:26 2024 +0800 |
committer | Jeremy Sim <jeremysim@google.com> | Tue Feb 06 18:40:03 2024 +0800 |
tree | e57dd984b199c8a112e1cd4dd33511bebbd5210d | |
parent | 6474a3b455322d4ee051a92ebdb723a07efd07a2 [diff] |
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
diff --git a/quickstep/src/com/android/quickstep/views/FloatingAppPairBackground.kt b/quickstep/src/com/android/quickstep/views/FloatingAppPairBackground.kt index 3a5873b..1c1e167 100644 --- a/quickstep/src/com/android/quickstep/views/FloatingAppPairBackground.kt +++ b/quickstep/src/com/android/quickstep/views/FloatingAppPairBackground.kt
@@ -115,7 +115,7 @@ } override fun draw(canvas: Canvas) { - if (launcher.deviceProfile.isLandscape) { + if (launcher.deviceProfile.isLeftRightSplit) { drawLeftRightSplit(canvas) } else { drawTopBottomSplit(canvas)