Update AboutActivity.kt

This commit is contained in:
Tibor Kaputa 2022-01-16 09:11:29 +01:00 committed by GitHub
parent 8d7ae28920
commit 49dfd4b77f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,6 @@ import android.os.Bundle
import android.os.Handler
import android.view.Menu
import androidx.core.net.toUri
import com.simplemobiletools.commons.BuildConfig
import com.simplemobiletools.commons.R
import com.simplemobiletools.commons.dialogs.ConfirmationAdvancedDialog
import com.simplemobiletools.commons.dialogs.RateStarsDialog
@ -135,7 +134,7 @@ class AboutActivity : BaseSimpleActivity() {
}
private fun setupDonate() {
if (BuildConfig.show_donate_in_about) {
if (resources.getBoolean(R.bool.show_donate_in_about)) {
about_donate_holder.beVisible()
about_contributors_holder.background = resources.getDrawable(R.drawable.ripple_background, theme)
about_donate_holder.setOnClickListener {