avoid showing some FAQ items in some cases
This commit is contained in:
parent
3f191c9ef6
commit
4b0e0697e6
|
@ -166,11 +166,14 @@ class MainActivity : SimpleActivity() {
|
||||||
|
|
||||||
val faqItems = arrayListOf(
|
val faqItems = arrayListOf(
|
||||||
FAQItem(R.string.faq_1_title_commons, R.string.faq_1_text_commons),
|
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_commons, R.string.faq_4_text_commons)
|
||||||
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)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
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))
|
||||||
|
}
|
||||||
|
|
||||||
startAboutActivity(R.string.app_name, licenses, BuildConfig.VERSION_NAME, faqItems, true)
|
startAboutActivity(R.string.app_name, licenses, BuildConfig.VERSION_NAME, faqItems, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue