diff options
-rw-r--r-- | app/proguard-rules.pro | 11 | ||||
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/activities/SettingsActivity.java | 2 |
2 files changed, 10 insertions, 3 deletions
diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 3172179f..7ca0b512 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -9,8 +9,7 @@ ## Preferences reflection -keep class * extends androidx.preference.PreferenceFragmentCompat --keep class ml.docilealligator.infinityforreddit.settings.FontPreviewFragment { *; } --keep class ml.docilealligator.infinityforreddit.settings.CrashReportsFragment { *; } +-keep public class ml.docilealligator.infinityforreddit.settings.** ## EventBus Rules -keepattributes *Annotation* @@ -66,6 +65,14 @@ -keep class ml.docilealligator.infinityforreddit.customtheme.CustomTheme { <fields>; } -keep class ml.docilealligator.infinityforreddit.multireddit.MultiRedditJSONModel { <fields>; } -keep class ml.docilealligator.infinityforreddit.multireddit.SubredditInMultiReddit { <fields>; } +-keep class ml.docilealligator.infinityforreddit.subscribedsubreddit.SubscribedSubredditData { <fields>; } +-keep class ml.docilealligator.infinityforreddit.subscribeduser.SubscribedUserData { <fields>; } +-keep class ml.docilealligator.infinityforreddit.multireddit.MultiReddit { <fields>; } +-keep class ml.docilealligator.infinityforreddit.multireddit.AnonymousMultiredditSubreddit { <fields>; } +-keep class ml.docilealligator.infinityforreddit.postfilter.PostFilter { <fields>; } +-keep class ml.docilealligator.infinityforreddit.postfilter.PostFilterUsage { <fields>; } +-keep class ml.docilealligator.infinityforreddit.commentfilter.CommentFilter { <fields>; } +-keep class ml.docilealligator.infinityforreddit.commentfilter.CommentFilterUsage { <fields>; } # Prevent proguard from stripping interface information from TypeAdapter, TypeAdapterFactory, # JsonSerializer, JsonDeserializer instances (so they can be used in @JsonAdapter) diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SettingsActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SettingsActivity.java index 602514e0..4a93433a 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SettingsActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SettingsActivity.java @@ -148,7 +148,7 @@ public class SettingsActivity extends BaseActivity implements } @Override - public boolean onPreferenceStartFragment(PreferenceFragmentCompat caller, Preference pref) { + public boolean onPreferenceStartFragment(@NonNull PreferenceFragmentCompat caller, Preference pref) { // Instantiate the new Fragment final Bundle args = pref.getExtras(); final Fragment fragment = getSupportFragmentManager().getFragmentFactory().instantiate( |