Add a rule to keep classes that implements CustomSliceable

Bug: 115862774
Test: visual, SliceViewer
Change-Id: Iff52a61423ef6822430a1f269a897b46d46f5253
diff --git a/proguard.flags b/proguard.flags
index 298058d..82e8e58 100644
--- a/proguard.flags
+++ b/proguard.flags
@@ -56,3 +56,8 @@
     public static ** SUMMARY_PROVIDER_FACTORY;
 }
 -keep class androidx.core.app.CoreComponentFactory
+
+# Keep classes that implements CustomSliceable, which are used by reflection.
+-keepclasseswithmembers class * implements com.android.settings.slices.CustomSliceable {
+    public <init>(android.content.Context);
+}
\ No newline at end of file