From 31ea98c081cddc95bec273b202c9f89889039e34 Mon Sep 17 00:00:00 2001 From: Fabian Kozynski Date: Mon, 1 Aug 2022 12:35:31 -0400 Subject: [PATCH] Fix Keep rules for MotionLayout We need to add keep rules for Key so the scene KeyFrames can be processed properly. Without this, all the alpha elements in the KeyFrames are not read. Test: mp sysuig Bug: 215584502 Change-Id: I960725d67bb80a0c0e2f76f434ca975dfeb08b76 --- packages/SystemUI/proguard.flags | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/SystemUI/proguard.flags b/packages/SystemUI/proguard.flags index 5b9299c278a97..7538555e1bcdc 100644 --- a/packages/SystemUI/proguard.flags +++ b/packages/SystemUI/proguard.flags @@ -11,6 +11,11 @@ -keep class * extends com.android.systemui.CoreStartable -keep class * implements com.android.systemui.CoreStartable$Injector +# Needed for builds to properly initialize KeyFrames from xml scene +-keepclassmembers class * extends androidx.constraintlayout.motion.widget.Key { + public (); +} + -keepclasseswithmembers class * { public (android.content.Context, android.util.AttributeSet); }