Commit 2582aa41 authored by Geoffrey Métais's avatar Geoffrey Métais

Fix Chromecast switch on Android P

(cherry picked from commit ba7b53fd)
parent 9478a18f
......@@ -128,12 +128,12 @@ class RenderersDialog : DialogFragment(), RendererDelegate.RendererListener, Pla
inner class RendererClickhandler {
fun connect(item: RendererItem?) {
RendererDelegate.selectRenderer(item)
mService?.setRenderer(item)
dismissAllowingStateLoss()
RendererDelegate.selectRenderer(item)
if (item !== null) activity?.window?.findViewById<View>(R.id.audio_player_container)?.let {
UiTools.snacker(it, getString(R.string.casting_connected_renderer, item.displayName))
}
dismiss()
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment