diff options
author | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2024-06-05 03:10:15 +0000 |
---|---|---|
committer | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2024-06-05 03:10:15 +0000 |
commit | 64ef6656cf248c2e5c72f3aafe6d9c0158d2277b (patch) | |
tree | b2ede97806826ac3150bfa71ae42ec38ce511789 /app | |
parent | 43f389f12fe5159d428769a7520e3340f8df5eaa (diff) | |
download | infinity-for-reddit-64ef6656cf248c2e5c72f3aafe6d9c0158d2277b.tar infinity-for-reddit-64ef6656cf248c2e5c72f3aafe6d9c0158d2277b.tar.gz infinity-for-reddit-64ef6656cf248c2e5c72f3aafe6d9c0158d2277b.tar.bz2 infinity-for-reddit-64ef6656cf248c2e5c72f3aafe6d9c0158d2277b.tar.lz infinity-for-reddit-64ef6656cf248c2e5c72f3aafe6d9c0158d2277b.tar.xz infinity-for-reddit-64ef6656cf248c2e5c72f3aafe6d9c0158d2277b.tar.zst infinity-for-reddit-64ef6656cf248c2e5c72f3aafe6d9c0158d2277b.zip |
Fix proguard rules.
Diffstat (limited to '')
-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( |