no reason for nested if
This commit is contained in:
parent
e5d3890ead
commit
1d92c4474f
1 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue