[Android] Code cleaning
Geoffrey Métais
git at videolan.org
Thu Jan 4 16:09:48 CET 2018
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jan 4 16:01:53 2018 +0100| [63aa960e1a932ecc162b3935e3429c849991cc25] | committer: Geoffrey Métais
Code cleaning
> https://code.videolan.org/videolan/vlc-android/commit/63aa960e1a932ecc162b3935e3429c849991cc25
---
vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
index 83536889d..3e7c93d7b 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
@@ -25,7 +25,6 @@ import android.annotation.TargetApi
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
-import android.media.AudioManager
import android.net.Uri
import android.os.Build
import android.os.Bundle
@@ -75,6 +74,7 @@ import org.videolan.vlc.gui.view.AudioMediaSwitcher.AudioMediaSwitcherListener
import org.videolan.vlc.util.AndroidDevices
import org.videolan.vlc.util.Constants
+ at Suppress("UNUSED_PARAMETER")
class AudioPlayer : PlaybackServiceFragment(), PlaybackService.Callback, PlaylistAdapter.IPlayer, TextWatcher {
private lateinit var mBinding: AudioPlayerBinding
@@ -95,11 +95,11 @@ class AudioPlayer : PlaybackServiceFragment(), PlaybackService.Callback, Playlis
private var mCurrentCoverArt: String? = null
companion object {
- val TAG = "VLC/AudioPlayer"
+ const val TAG = "VLC/AudioPlayer"
private var DEFAULT_BACKGROUND_DARKER_ID = 0
private var DEFAULT_BACKGROUND_ID = 0
- private val SEARCH_TIMEOUT_MILLIS = 5000
+ const private val SEARCH_TIMEOUT_MILLIS = 5000
/**
* Show the audio player from an intent
*
More information about the Android
mailing list