From 5139901c38383f1aa707afc48acb6992ec644b5e Mon Sep 17 00:00:00 2001 From: Shawn Lee Date: Wed, 14 Jun 2023 15:34:53 -0700 Subject: [PATCH] Remove bottom corner radius from notification scrim Removes the bottom corner radius from the notifications scrim except in split shade (or when predictive back animation is running), to avoid instances of mismatch between the rendered corner and the actual device corner. Bug: 278957007 Test: verified scrim looks correct in accordion and split shade Change-Id: Ia3e575c2a306bdb73adad339e27692dea840d093 --- .../com/android/systemui/shade/QuickSettingsController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/shade/QuickSettingsController.java b/packages/SystemUI/src/com/android/systemui/shade/QuickSettingsController.java index 6480164cdaf55..ff7e3d52c1912 100644 --- a/packages/SystemUI/src/com/android/systemui/shade/QuickSettingsController.java +++ b/packages/SystemUI/src/com/android/systemui/shade/QuickSettingsController.java @@ -1216,7 +1216,8 @@ public class QuickSettingsController implements Dumpable { if (mIsFullWidth) { clipStatusView = qsVisible; float screenCornerRadius = - mRecordingController.isRecording() || mCastController.hasConnectedCastDevice() + !mSplitShadeEnabled || mRecordingController.isRecording() + || mCastController.hasConnectedCastDevice() ? 0 : mScreenCornerRadius; radius = (int) MathUtils.lerp(screenCornerRadius, mScrimCornerRadius, Math.min(top / (float) mScrimCornerRadius, 1f));