[Android] Fix app notification removal
Geoffrey Métais
git at videolan.org
Fri Jul 27 10:56:19 CEST 2018
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Jul 27 10:53:55 2018 +0200| [c65af058b59e813e9b6c61937a778fa585d880ae] | committer: Geoffrey Métais
Fix app notification removal
> https://code.videolan.org/videolan/vlc-android/commit/c65af058b59e813e9b6c61937a778fa585d880ae
---
vlc-android/src/org/videolan/vlc/PlaybackService.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.kt b/vlc-android/src/org/videolan/vlc/PlaybackService.kt
index b285edece..02573dcbe 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.kt
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.kt
@@ -586,7 +586,7 @@ class PlaybackService : MediaBrowserServiceCompat() {
fun onMediaPlayerEvent(event: MediaPlayer.Event) = mediaPlayerListener.onEvent(event)
fun onPlaybackStopped(systemExit: Boolean) {
- if (!systemExit) hideNotification(VLCApplication.isForeground())
+ if (!systemExit) hideNotification(isForeground)
removePopup()
if (wakeLock.isHeld) wakeLock.release()
audioFocusHelper.changeAudioFocus(false)
More information about the Android
mailing list