Fix code analytics

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-04-30 12:41:26 +02:00
parent 17ad0a6bad
commit 8e462f1b09
No known key found for this signature in database
GPG key ID: 4E577DC593B59BDF

View file

@ -61,6 +61,7 @@ class MediaControlView(context: Context, attrs: AttributeSet?) :
super.onFinishInflate()
}
@Suppress("MagicNumber")
fun setMediaPlayer(player: MediaPlayerControl?) {
playerControl = player
handler.sendEmptyMessage(SHOW_PROGRESS)
@ -75,6 +76,7 @@ class MediaControlView(context: Context, attrs: AttributeSet?) :
handler.removeMessages(SHOW_PROGRESS)
}
@Suppress("MagicNumber")
private fun initControllerView() {
binding.playBtn.requestFocus()
@ -161,7 +163,7 @@ class MediaControlView(context: Context, attrs: AttributeSet?) :
}
}
@Suppress("MagicNumber")
@Suppress("MagicNumber", "ReturnCount")
private fun setProgress(): Int {
var position = 0
if (playerControl == null || isDragging) {