fix build

fixes #20

Signed-off-by: androidacy-user <opensource@androidacy.com>
pull/27/head
androidacy-user 2 years ago
parent 3b8ab218f8
commit eb2645075a

@ -497,7 +497,7 @@ android {
buildConfig = true buildConfig = true
} }
//noinspection GrDeprecatedAPIUsage //noinspection GrDeprecatedAPIUsage
buildToolsVersion = "34.0.0 rc3" buildToolsVersion = "33.0.2"
@Suppress("DEPRECATION") packagingOptions { @Suppress("DEPRECATION") packagingOptions {
jniLibs { jniLibs {
useLegacyPackaging = true useLegacyPackaging = true

@ -943,7 +943,7 @@ public class SettingsActivity extends FoxActivity implements LanguageActivity {
// now handle pref_donate_androidacy // now handle pref_donate_androidacy
LongClickablePreference pref_donate_androidacy = findPreference("pref_donate_androidacy"); LongClickablePreference pref_donate_androidacy = findPreference("pref_donate_androidacy");
if (!BuildConfig.FLAVOR.equals("play")) { if (!BuildConfig.FLAVOR.equals("play")) {
if (Objects.equals(AndroidacyRepoData.getInstance().memberLevel, "Guest")) { if (AndroidacyRepoData.getInstance().isEnabled() && Objects.equals(AndroidacyRepoData.getInstance().memberLevel, "Guest") || AndroidacyRepoData.getInstance().memberLevel == null) {
pref_donate_androidacy.setOnPreferenceClickListener(p -> { pref_donate_androidacy.setOnPreferenceClickListener(p -> {
// copy FOX2CODE promo code to clipboard and toast user that they can use it for half off any subscription // copy FOX2CODE promo code to clipboard and toast user that they can use it for half off any subscription
String toastText = requireContext().getString(R.string.promo_code_copied); String toastText = requireContext().getString(R.string.promo_code_copied);

Loading…
Cancel
Save