diff --git a/quickstep/src/com/android/quickstep/RotationTouchHelper.java b/quickstep/src/com/android/quickstep/RotationTouchHelper.java index d882296946..53843bd52b 100644 --- a/quickstep/src/com/android/quickstep/RotationTouchHelper.java +++ b/quickstep/src/com/android/quickstep/RotationTouchHelper.java @@ -149,8 +149,13 @@ public class RotationTouchHelper implements DisplayInfoChangeListener { mSystemUiProxy = systemUiProxy; Resources resources = mApplicationContext.getResources(); + // TODO(b/408988616): Find a better solution for external display to have resources updated + // after configuration changes. + Context displayAssociatedContext = + mApplicationContext.getAssociatedDisplayId() == mDisplayId + ? mApplicationContext : displayContext; mOrientationTouchTransformer = new OrientationTouchTransformer(resources, mMode, - () -> QuickStepContract.getWindowCornerRadius(displayContext)); + () -> QuickStepContract.getWindowCornerRadius(displayAssociatedContext)); // Register for navigation mode and rotation changes mDisplayController.addChangeListenerForDisplay(this, mDisplayId);