I am adding a Notification to System bar using the NotificationCompat library. This Notification has two action buttons. Also, AutoCancel() propert
NotificationCompat
AutoCancel()
If your action is in the form of a broadcast or a service but you intend for the notification drawer to collapse, you should broadcast android.intent.action.CLOSE_SYSTEM_DIALOGS from your onReceive. This will manually close the drawer.