Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,12 @@ class IslandWindow(private val context: Context) {
}

val videoView = islandView.findViewById<VideoView>(R.id.island_video_view)
val videoUri = "android.resource://me.kavishdevar.librepods/${R.raw.island}".toUri()
val videoUri = "android.resource://${context.packageName}/${R.raw.island}".toUri()
videoView.setAudioFocusRequest(AudioManager.AUDIOFOCUS_NONE)
videoView.setOnErrorListener { _, what, extra ->
e("IslandWindow", "Error playing island video: what=$what extra=$extra")
true
}
videoView.setVideoURI(videoUri)
videoView.setOnPreparedListener { mediaPlayer ->
mediaPlayer.isLooping = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@ class PopupWindow(

val vid = mView.findViewById<VideoView>(R.id.video)
vid.setAudioFocusRequest(AudioManager.AUDIOFOCUS_NONE)
vid.setVideoPath("android.resource://me.kavishdevar.librepods/" + R.raw.connected)
vid.setOnErrorListener { _, what, extra ->
Log.e("PopupWindow", "Error playing popup video: what=$what extra=$extra")
true
}
vid.setVideoPath("android.resource://${context.packageName}/${R.raw.connected}")
vid.resolveAdjustedSize(vid.width, vid.height)
vid.start()
vid.setOnCompletionListener {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class KotlinModule: XposedModule() {
}

val uri = iconUri.toUri()
if (!uri.toString().startsWith("android.resource://me.kavishdevar.librepods")) {
if (uri.authority != moduleApplicationInfo.packageName) {
return@intercept chain.proceed()
}

Expand Down