fix: context being lost in settings
This commit is contained in:
parent
f704e322af
commit
b5eda797b5
1 changed files with 3 additions and 3 deletions
|
@ -1017,17 +1017,17 @@ class SettingsActivity : AppCompatActivity(), SimpleDialog.OnDialogResultListene
|
||||||
runOnUiThread {
|
runOnUiThread {
|
||||||
if (Random.nextInt(0, 100) > 69) {
|
if (Random.nextInt(0, 100) > 69) {
|
||||||
CustomBottomDialog.newInstance().apply {
|
CustomBottomDialog.newInstance().apply {
|
||||||
title = getString(R.string.enjoying_app)
|
title = this@SettingsActivity.getString(R.string.enjoying_app)
|
||||||
addView(TextView(this@SettingsActivity).apply {
|
addView(TextView(this@SettingsActivity).apply {
|
||||||
text = context.getString(R.string.consider_donating)
|
text = context.getString(R.string.consider_donating)
|
||||||
})
|
})
|
||||||
|
|
||||||
setNegativeButton(getString(R.string.no_moners)) {
|
setNegativeButton(this@SettingsActivity.getString(R.string.no_moners)) {
|
||||||
snackString(R.string.you_be_rich)
|
snackString(R.string.you_be_rich)
|
||||||
dismiss()
|
dismiss()
|
||||||
}
|
}
|
||||||
|
|
||||||
setPositiveButton(getString(R.string.donate)) {
|
setPositiveButton(this@SettingsActivity.getString(R.string.donate)) {
|
||||||
binding.settingBuyMeCoffee.performClick()
|
binding.settingBuyMeCoffee.performClick()
|
||||||
dismiss()
|
dismiss()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue