mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 21:25:35 +03:00
Fix code analytics
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
17ad0a6bad
commit
8e462f1b09
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue