Code Cleanup
This commit is contained in:
parent
7140ef3d83
commit
3f188d028a
13 changed files with 41 additions and 39 deletions
|
@ -17,10 +17,11 @@ import android.content.Context
|
|||
import android.media.AudioManager
|
||||
import android.os.Handler
|
||||
import android.provider.Settings
|
||||
import androidx.core.content.getSystemService
|
||||
|
||||
class AudioVolumeObserver(private val context: Context) {
|
||||
private val mAudioManager: AudioManager =
|
||||
context.getSystemService(Context.AUDIO_SERVICE) as AudioManager
|
||||
context.getSystemService()!!
|
||||
private var contentObserver: AudioVolumeContentObserver? = null
|
||||
|
||||
fun register(audioStreamType: Int, listener: OnAudioVolumeChangedListener) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue