File tree Expand file tree Collapse file tree
android/app/src/main/java/me/kavishdevar/librepods/presentation/overlays Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ import android.content.IntentFilter
3333import android.content.res.Resources
3434import android.graphics.PixelFormat
3535import android.graphics.drawable.GradientDrawable
36+ import android.media.AudioManager
3637import android.os.Build
3738import android.os.Handler
3839import android.os.Looper
@@ -374,6 +375,7 @@ class IslandWindow(private val context: Context) {
374375
375376 val videoView = islandView.findViewById<VideoView >(R .id.island_video_view)
376377 val videoUri = " android.resource://me.kavishdevar.librepods/${R .raw.island} " .toUri()
378+ videoView.setAudioFocusRequest(AudioManager .AUDIOFOCUS_NONE )
377379 videoView.setVideoURI(videoUri)
378380 videoView.setOnPreparedListener { mediaPlayer ->
379381 mediaPlayer.isLooping = true
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import android.content.Context
2929import android.content.Intent
3030import android.content.IntentFilter
3131import android.graphics.PixelFormat
32+ import android.media.AudioManager
3233import android.os.Build
3334import android.os.Handler
3435import android.os.Looper
@@ -137,6 +138,7 @@ class PopupWindow(
137138 updateBatteryStatus(batteryNotification)
138139
139140 val vid = mView.findViewById<VideoView >(R .id.video)
141+ vid.setAudioFocusRequest(AudioManager .AUDIOFOCUS_NONE )
140142 vid.setVideoPath(" android.resource://me.kavishdevar.librepods/" + R .raw.connected)
141143 vid.resolveAdjustedSize(vid.width, vid.height)
142144 vid.start()
You can’t perform that action at this time.
0 commit comments