This commit is contained in:
Juan Miguel Boyero Corral 2013-04-19 18:06:11 +02:00
parent dd2747b6fd
commit 4546f532cf

View File

@ -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);
}
/**