[Android] Apply suggestion to application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
Nicolas Pomepuy
git at videolan.org
Thu Apr 9 09:16:16 CEST 2020
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed Apr 8 09:33:40 2020 +0200| [a5375530f6cea9da04414f6aa4337f10e3097578] | committer: Geoffrey Métais
Apply suggestion to application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
> https://code.videolan.org/videolan/vlc-android/commit/a5375530f6cea9da04414f6aa4337f10e3097578
---
application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt b/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
index be6a29e2a..2811597e3 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
@@ -583,7 +583,7 @@ class AudioPlayer : Fragment(), PlaylistAdapter.IPlayer, TextWatcher, IAudioPlay
val trackInfo = playlistModel.title ?: return
requireActivity().copy("VLC - song name", trackInfo)
- UiTools.snacker(requireActivity().findViewById(android.R.id.content), R.string.track_info_copied_to_clipboard)
+ activity?.window?.decorView?.let { UiTools.snacker(it, R.string.track_info_copied_to_clipboard) }
}
override fun onTouchDown() {}
More information about the Android
mailing list