|
|
@ -20,8 +20,6 @@ class ReaderSeekBar @JvmOverloads constructor(
|
|
|
|
* Whether the seekbar should draw from right to left.
|
|
|
|
* Whether the seekbar should draw from right to left.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
var isRTL = false
|
|
|
|
var isRTL = false
|
|
|
|
private val boundingBox: Rect = Rect()
|
|
|
|
|
|
|
|
private val exclusions = listOf(boundingBox)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Draws the seekbar, translating the canvas if using a right to left reader.
|
|
|
|
* Draws the seekbar, translating the canvas if using a right to left reader.
|
|
|
@ -45,14 +43,4 @@ class ReaderSeekBar @JvmOverloads constructor(
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return super.onTouchEvent(event)
|
|
|
|
return super.onTouchEvent(event)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|