mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 20:48:43 +00:00
Add default values to global duration scale resolution.
This commit is contained in:
@@ -9,8 +9,8 @@ fun ContentResolver.areSystemAnimationsDisabled(): Boolean {
|
||||
return if (Build.VERSION.SDK_INT >= 26) {
|
||||
!ValueAnimator.areAnimatorsEnabled()
|
||||
} else {
|
||||
val durationScale = Settings.System.getFloat(this, Settings.Global.ANIMATOR_DURATION_SCALE)
|
||||
val transitionScale = Settings.System.getFloat(this, Settings.Global.TRANSITION_ANIMATION_SCALE)
|
||||
val durationScale = Settings.Global.getFloat(this, Settings.Global.ANIMATOR_DURATION_SCALE, 1.0f)
|
||||
val transitionScale = Settings.Global.getFloat(this, Settings.Global.TRANSITION_ANIMATION_SCALE, 1.0f)
|
||||
|
||||
!(durationScale > 0f && transitionScale > 0f)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user