adding a flag for the fdroid build variant

This commit is contained in:
tibbi 2022-06-26 21:48:27 +02:00
parent c26cf52103
commit 46ebee83e1
3 changed files with 7 additions and 3 deletions

View File

@ -61,5 +61,5 @@ android {
}
dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:302258f435'
implementation 'com.github.SimpleMobileTools:Simple-Commons:5bbdbc115b'
}

View File

@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="show_donate_in_about">true</bool>
<bool name="hide_google_relations">true</bool>
</resources>

View File

@ -49,11 +49,14 @@ class MainActivity : SimpleActivity() {
private fun launchAbout() {
val faqItems = arrayListOf(
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)
)
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, 0, BuildConfig.VERSION_NAME, faqItems, false)
}