[Android] Reset last notification time on scan service end
Geoffrey Métais
git at videolan.org
Tue Dec 18 14:55:46 CET 2018
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Dec 18 11:30:39 2018 +0100| [8b0f5dc1af81f95bd6f60c291aeec0c0d20f6de4] | committer: Geoffrey Métais
Reset last notification time on scan service end
> https://code.videolan.org/videolan/vlc-android/commit/8b0f5dc1af81f95bd6f60c291aeec0c0d20f6de4
---
vlc-android/src/org/videolan/vlc/MediaParsingService.kt | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/MediaParsingService.kt b/vlc-android/src/org/videolan/vlc/MediaParsingService.kt
index ca7d09d75..7cf622b7c 100644
--- a/vlc-android/src/org/videolan/vlc/MediaParsingService.kt
+++ b/vlc-android/src/org/videolan/vlc/MediaParsingService.kt
@@ -332,7 +332,10 @@ class MediaParsingService : Service(), DevicesDiscoveryCb, CoroutineScope {
}
private fun exitCommand() = launch {
- if (!medialibrary.isWorking && !serviceLock) stopSelf()
+ if (!medialibrary.isWorking && !serviceLock) {
+ lastNotificationTime = 0L
+ stopSelf()
+ }
}
override fun onDestroy() {
More information about the Android
mailing list