Skip to content
Snippets Groups Projects
Commit 35fc6829 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy Committed by Geoffrey Métais
Browse files

Apply suggestion to application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt

parent 519d4386
No related branches found
Tags 3.0.2
1 merge request!535Audio fixes
......@@ -351,7 +351,7 @@ class AudioPlayer : Fragment(), PlaylistAdapter.IPlayer, TextWatcher, IAudioPlay
}
fun onNextClick(view: View) {
if (!playlistModel.next()) UiTools.snacker(requireActivity().findViewById(android.R.id.content), R.string.lastsong)
if (!playlistModel.next()) activity?.window?.decorView?.let { UiTools.snacker(it, R.string.lastsong) }
}
fun onPreviousClick(view: View) {
......
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