Skip to content

Commit

Permalink
proguard.flags: Don't optimize fragment constructors
Browse files Browse the repository at this point in the history
09-03 13:08:51.712  4496  4496 E MessageQueue-JNI: Exception in MessageQueue callback: handleReceiveCallback
09-03 13:08:51.713  4496  4496 E MessageQueue-JNI: android.app.Fragment$InstantiationException: Unable to instantiate fragment com.android.dialer.app.settings.DisplayOptionsSettingsFragment: calling Fragment constructor caused an exception
09-03 13:08:51.713  4496  4496 E MessageQueue-JNI:      at android.app.Fragment.instantiate(Fragment.java:565)
09-03 13:08:51.713  4496  4496 E MessageQueue-JNI:      at android.preference.PreferenceActivity.switchToHeaderInner(PreferenceActivity.java:1245)
09-03 13:08:51.713  4496  4496 E MessageQueue-JNI:      at android.preference.PreferenceActivity.switchToHeader(PreferenceActivity.java:1296)
09-03 13:08:51.713  4496  4496 E MessageQueue-JNI:      at android.preference.PreferenceActivity.onHeaderClick(PreferenceActivity.java:1093)
09-03 13:08:51.713  4496  4496 E MessageQueue-JNI:      at com.android.dialer.app.settings.DialerSettingsActivity.onHeaderClick(DialerSettingsActivity.java:45)

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: Idef793065ea422e7506f943bc76cd20e60e0a271
  • Loading branch information
theimpulson authored and Myself5 committed Jun 21, 2023
1 parent b206ca5 commit e2b6a46
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion proguard.flags
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# These are referenced by com.google.common.util.concurrent and
# com.google.errorprone.annotations but don't exist on Android.
-dontwarn java.lang.ClassValue
-dontwarn javax.lang.model.element.Modifier
-dontwarn javax.lang.model.element.Modifier

-keep public class * extends android.app.Fragment {
public <init>();
}

0 comments on commit e2b6a46

Please sign in to comment.