From 1d92c4474f84a49b73992badba7b86737843b619 Mon Sep 17 00:00:00 2001 From: CarlosEsco Date: Wed, 22 Apr 2020 13:19:49 -0400 Subject: [PATCH] no reason for nested if --- .../java/eu/kanade/tachiyomi/ui/reader/ReaderSeekBar.kt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSeekBar.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSeekBar.kt index 31576a4266..fd58dc07aa 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSeekBar.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSeekBar.kt @@ -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 } } }