From 92699b55c2e8ef627707094c6bd7b4c744ec8aa0 Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Fri, 30 Apr 2021 09:53:56 +0200 Subject: [PATCH] Fixed an issue where the notification was clipped during the translation Because we were not invalidating the view anymore, but clipping was done in the drawChild call, the clipping was never updated. Invalidating the view fixes this. Test: swipe, observe no jank Fixes: 186488568 Change-Id: I10b1e0ef52936ec7f67266686f086604a7d1f501 --- .../statusbar/notification/row/ExpandableNotificationRow.java | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java index b5d2ea5b45f13..206f9db292e1d 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java @@ -1869,6 +1869,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView @Override public void setTranslation(float translationX) { + invalidate(); if (isBlockingHelperShowingAndTranslationFinished()) { mGuts.setTranslationX(translationX); return;