mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 01:08:50 -06:00
Allow user to disable confetti animation
This commit is contained in:
@@ -135,6 +135,12 @@ open class Preferences(private val storage: Storage) {
|
||||
storage.putBoolean("pref_short_toggle", enabled)
|
||||
}
|
||||
|
||||
var isConfettiAnimationDisabled: Boolean
|
||||
get() = storage.getBoolean("pref_disable_animation", false)
|
||||
set(enabled) {
|
||||
storage.putBoolean("pref_disable_animation", enabled)
|
||||
}
|
||||
|
||||
fun removeListener(listener: Listener) {
|
||||
listeners.remove(listener)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user