no reason for nested if

This commit is contained in:
CarlosEsco 2020-04-22 13:19:49 -04:00
parent e5d3890ead
commit 1d92c4474f

View file

@ -48,11 +48,9 @@ class ReaderSeekBar @JvmOverloads constructor(
override fun onLayout(changed: Boolean, left: Int, top: Int, right: Int, bottom: Int) {
super.onLayout(changed, left, top, right, bottom)
if (Build.VERSION.SDK_INT >= 29) {
if (changed) {
boundingBox.set(left, top, right, bottom)
systemGestureExclusionRects = exclusions
}
if (Build.VERSION.SDK_INT >= 29 && changed) {
boundingBox.set(left, top, right, bottom)
systemGestureExclusionRects = exclusions
}
}
}