Skip to content
Snippets Groups Projects
Commit 9d0c61bf authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

Prevent displaying tips on TV as it leads to crashes

parent 32a20b76
No related branches found
No related tags found
1 merge request!1105Beta crashes
Pipeline #142411 passed with stage
in 4 minutes and 50 seconds
......@@ -117,11 +117,13 @@ class PlayerOptionsDelegate(val activity: FragmentActivity, val service: Playbac
if (service.playlistManager.player.canDoPassthrough() && settings.getString("aout", "0") == "0")
options.add(PlayerOption(ID_PASSTHROUGH, R.attr.ic_passthrough, res.getString(R.string.audio_digital_title)))
(recyclerview.adapter as OptionsAdapter).update(options)
if (video) {
options.add(PlayerOption(ID_SHOW_VIDEO_TIPS, R.attr.ic_tips, res.getString(R.string.tips_title)))
} else {
options.add(PlayerOption(ID_SHOW_AUDIO_TIPS, R.attr.ic_tips, res.getString(R.string.audio_player_tips)))
options.add(PlayerOption(ID_SHOW_PLAYLIST_TIPS, R.attr.ic_tips, res.getString(R.string.playlist_tips)))
if (!Settings.showTvUi) {
if (video) {
options.add(PlayerOption(ID_SHOW_VIDEO_TIPS, R.attr.ic_tips, res.getString(R.string.tips_title)))
} else {
options.add(PlayerOption(ID_SHOW_AUDIO_TIPS, R.attr.ic_tips, res.getString(R.string.audio_player_tips)))
options.add(PlayerOption(ID_SHOW_PLAYLIST_TIPS, R.attr.ic_tips, res.getString(R.string.playlist_tips)))
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment