mirror of
https://github.com/SimpleMobileTools/Simple-Thank-You.git
synced 2025-01-31 16:54:48 +01:00
adding a flag for the fdroid build variant
This commit is contained in:
parent
c26cf52103
commit
46ebee83e1
@ -61,5 +61,5 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:302258f435'
|
||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:5bbdbc115b'
|
||||
}
|
||||
|
@ -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>
|
||||
|
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user