[Android] Code clean-up

Robert Stone git at videolan.org
Thu Nov 25 06:45:31 UTC 2021


vlc-android | branch: master | Robert Stone <rhstone at gmail.com> | Sat Nov 20 20:28:22 2021 -0800| [cbf8bd4f80feb6bdd28c8e82e80f5265b9af8c8b] | committer: Nicolas Pomepuy

Code clean-up

> https://code.videolan.org/videolan/vlc-android/commit/cbf8bd4f80feb6bdd28c8e82e80f5265b9af8c8b
---

 .../vlc-android/src/org/videolan/vlc/MediaSessionCallback.kt        | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/MediaSessionCallback.kt b/application/vlc-android/src/org/videolan/vlc/MediaSessionCallback.kt
index c8ed8ef3a..77fd0e4a0 100644
--- a/application/vlc-android/src/org/videolan/vlc/MediaSessionCallback.kt
+++ b/application/vlc-android/src/org/videolan/vlc/MediaSessionCallback.kt
@@ -247,7 +247,7 @@ internal class MediaSessionCallback(private val playbackService: PlaybackService
         }
     }
 
-    private fun checkforSeekFailure(forward: Boolean) {
+    private fun checkForSeekFailure(forward: Boolean) {
         if (playbackService.playlistManager.player.lastPosition == 0.0f && (forward || playbackService.getTime() > 0))
             playbackService.displayPlaybackMessage(R.string.unseekable_stream)
     }
@@ -303,12 +303,12 @@ internal class MediaSessionCallback(private val playbackService: PlaybackService
 
     override fun onFastForward() {
         playbackService.seek((playbackService.getTime() + TEN_SECONDS).coerceAtMost(playbackService.length), fromUser = true)
-        checkforSeekFailure(forward = true)
+        checkForSeekFailure(forward = true)
     }
 
     override fun onRewind() {
         playbackService.seek((playbackService.getTime() - TEN_SECONDS).coerceAtLeast(0), fromUser = true)
-        checkforSeekFailure(forward = false)
+        checkForSeekFailure(forward = false)
     }
 
     override fun onSkipToQueueItem(id: Long) = playbackService.playIndexOrLoadLastPlaylist(id.toInt())



More information about the Android mailing list