Skip to content

Commit eb26450

Browse files
fix build
fixes #20 Signed-off-by: androidacy-user <opensource@androidacy.com>
1 parent 3b8ab21 commit eb26450

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ android {
497497
buildConfig = true
498498
}
499499
//noinspection GrDeprecatedAPIUsage
500-
buildToolsVersion = "34.0.0 rc3"
500+
buildToolsVersion = "33.0.2"
501501
@Suppress("DEPRECATION") packagingOptions {
502502
jniLibs {
503503
useLegacyPackaging = true

app/src/main/java/com/fox2code/mmm/settings/SettingsActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
943943
// now handle pref_donate_androidacy
944944
LongClickablePreference pref_donate_androidacy = findPreference("pref_donate_androidacy");
945945
if (!BuildConfig.FLAVOR.equals("play")) {
946-
if (Objects.equals(AndroidacyRepoData.getInstance().memberLevel, "Guest")) {
946+
if (AndroidacyRepoData.getInstance().isEnabled() && Objects.equals(AndroidacyRepoData.getInstance().memberLevel, "Guest") || AndroidacyRepoData.getInstance().memberLevel == null) {
947947
pref_donate_androidacy.setOnPreferenceClickListener(p -> {
948948
// copy FOX2CODE promo code to clipboard and toast user that they can use it for half off any subscription
949949
String toastText = requireContext().getString(R.string.promo_code_copied);

0 commit comments

Comments
 (0)