diff --git a/app/build.gradle b/app/build.gradle index f51bdd724..fce218d08 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -59,6 +59,7 @@ android { productFlavors { proprietary {} foss {} + prepaid {} } lintOptions { diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Activity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Activity.kt index 565c300de..0005045bc 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Activity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Activity.kt @@ -107,13 +107,16 @@ fun SimpleActivity.launchAbout() { FAQItem(R.string.faq_15_title, R.string.faq_15_text), FAQItem(R.string.faq_2_title, R.string.faq_2_text), FAQItem(R.string.faq_18_title, R.string.faq_18_text), - FAQItem(R.string.faq_2_title_commons, R.string.faq_2_text_commons), - FAQItem(R.string.faq_6_title_commons, R.string.faq_6_text_commons), - FAQItem(R.string.faq_7_title_commons, R.string.faq_7_text_commons), FAQItem(R.string.faq_9_title_commons, R.string.faq_9_text_commons), - FAQItem(R.string.faq_10_title_commons, R.string.faq_10_text_commons) ) + if (!resources.getBoolean(R.bool.hide_google_relations)) { + faqItems.add(FAQItem(R.string.faq_2_title_commons, R.string.faq_2_text_commons)) + faqItems.add(FAQItem(R.string.faq_6_title_commons, R.string.faq_6_text_commons)) + faqItems.add(FAQItem(R.string.faq_7_title_commons, R.string.faq_7_text_commons)) + faqItems.add(FAQItem(R.string.faq_10_title_commons, R.string.faq_10_text_commons)) + } + if (isRPlus()) { faqItems.add(0, FAQItem(R.string.faq_16_title, R.string.faq_16_text)) faqItems.add(1, FAQItem(R.string.faq_17_title, R.string.faq_17_text)) diff --git a/app/src/prepaid/res/values/bools.xml b/app/src/prepaid/res/values/bools.xml new file mode 100644 index 000000000..d78678c11 --- /dev/null +++ b/app/src/prepaid/res/values/bools.xml @@ -0,0 +1,6 @@ + + + false + true + true +