Fixed lock warning on NONE and RANDOM popup effects
This commit is contained in:
parent
3fa2bc38ab
commit
4c9b0a1b22
4 changed files with 10 additions and 4 deletions
|
@ -133,7 +133,11 @@ class PopupSettingsFragment : Fragment() {
|
|||
binding.popupEffectSpinner.onItemSelectedListener = object : AdapterView.OnItemSelectedListener {
|
||||
override fun onItemSelected(parent: AdapterView<*>, view: View?, position: Int, id: Long) {
|
||||
val selectedEffect = allEffects[position]
|
||||
if (!prefs.isDonationActivated && selectedEffect !in prefs.getAvailablePopupEffects()) {
|
||||
if (!prefs.isDonationActivated &&
|
||||
selectedEffect !in prefs.getAvailablePopupEffects() &&
|
||||
selectedEffect != Preferences.PopupEffect.NONE &&
|
||||
selectedEffect != Preferences.PopupEffect.RANDOM
|
||||
) {
|
||||
Toast.makeText(requireContext(), getString(R.string.donate_lock), Toast.LENGTH_SHORT).show()
|
||||
binding.popupEffectSpinner.setSelection(prefs.popupEffect.ordinal)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue