From 8e462f1b09c5e5342c842fe2edb91fc6dd62e804 Mon Sep 17 00:00:00 2001 From: alperozturk Date: Tue, 30 Apr 2024 12:41:26 +0200 Subject: [PATCH] Fix code analytics Signed-off-by: alperozturk --- .../main/java/com/owncloud/android/media/MediaControlView.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/owncloud/android/media/MediaControlView.kt b/app/src/main/java/com/owncloud/android/media/MediaControlView.kt index ad8abab3c6..32fe997bc7 100644 --- a/app/src/main/java/com/owncloud/android/media/MediaControlView.kt +++ b/app/src/main/java/com/owncloud/android/media/MediaControlView.kt @@ -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) {