From 676be1fae30898798f2a0ebf9945f3e001d5983c Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 4 Apr 2022 10:33:05 +0200 Subject: [PATCH] hide some FAQ items in the prepaid product flavor --- .../calendar/pro/activities/MainActivity.kt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/MainActivity.kt index f29c37be8..cd53a6dc6 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/MainActivity.kt @@ -1169,12 +1169,16 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener { FAQItem(R.string.faq_1_title, R.string.faq_1_text), FAQItem(R.string.faq_1_title_commons, R.string.faq_1_text_commons), FAQItem(R.string.faq_4_title_commons, R.string.faq_4_text_commons), - FAQItem(R.string.faq_4_title, R.string.faq_4_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_4_title, R.string.faq_4_text) ) + 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)) + + } + startAboutActivity(R.string.app_name, licenses, BuildConfig.VERSION_NAME, faqItems, true) }