[Android] Set content intent for ML scan notification
Geoffrey Métais
git at videolan.org
Thu Feb 9 17:42:47 CET 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb 9 17:42:22 2017 +0100| [14e051a3e87d3753a1520432b38031ac4c875c3a] | committer: Geoffrey Métais
Set content intent for ML scan notification
> https://code.videolan.org/videolan/vlc-android/commit/14e051a3e87d3753a1520432b38031ac4c875c3a
---
vlc-android/src/org/videolan/vlc/MediaParsingService.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/vlc-android/src/org/videolan/vlc/MediaParsingService.java b/vlc-android/src/org/videolan/vlc/MediaParsingService.java
index 249dbc0..a85aa84 100644
--- a/vlc-android/src/org/videolan/vlc/MediaParsingService.java
+++ b/vlc-android/src/org/videolan/vlc/MediaParsingService.java
@@ -150,6 +150,7 @@ public class MediaParsingService extends Service implements DevicesDiscoveryCb {
else
sb.append(getString(R.string.ml_parse_media));
NotificationCompat.Builder builder = new NotificationCompat.Builder(MediaParsingService.this)
+ .setContentIntent(PendingIntent.getActivity(MediaParsingService.this, 0, new Intent(MediaParsingService.this, StartActivity.class), PendingIntent.FLAG_UPDATE_CURRENT))
.setSmallIcon(R.drawable.ic_notif_scan)
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
.setContentTitle(getString(R.string.ml_scanning))
More information about the Android
mailing list