Cancel boost animations in onStop.

This commit is contained in:
Alex Hart
2022-11-07 10:31:54 -04:00
committed by Cody Henthorne
parent fc145d7367
commit 018bb49a03

View File

@@ -229,6 +229,21 @@ class DonateToSignalFragment : DSLSettingsFragment(
}
}
override fun onStop() {
super.onStop()
listOf(
binding.boost1Animation,
binding.boost2Animation,
binding.boost3Animation,
binding.boost4Animation,
binding.boost5Animation,
binding.boost6Animation
).forEach {
it.cancelAnimation()
}
}
private fun getConfiguration(state: DonateToSignalState): DSLConfiguration {
return configure {
space(36.dp)