Fixes #11
This commit is contained in:
parent
dd2747b6fd
commit
4546f532cf
|
@ -145,6 +145,7 @@ public class DownloadNotification {
|
|||
mNotification.setLatestEventInfo(mContext, mContentTitle, contentText, mContentIntent);
|
||||
//Flag_auto_cancel allows to the notification to erases itself when is clicked.
|
||||
mNotification.flags = Notification.FLAG_AUTO_CANCEL;
|
||||
mNotification.contentIntent = mContentIntent;
|
||||
mNotificationManager.notify(NOTIFICATION_ID, mNotification);
|
||||
|
||||
}
|
||||
|
@ -166,6 +167,7 @@ public class DownloadNotification {
|
|||
//publish it to the status bar
|
||||
mNotification.setLatestEventInfo(mContext, mContentTitle, contentText, mContentIntent);
|
||||
mNotification.flags = Notification.FLAG_AUTO_CANCEL;
|
||||
mNotification.contentIntent = mContentIntent;
|
||||
mNotificationManager.notify(NOTIFICATION_ID, mNotification);
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user