Clicking Android Notification Actions does not close Notification drawer -
i adding notification system bar using notificationcompat
library. notification has 2 action buttons. also, autocancel()
property on notification set true.
on click of action buttons, system configured launch intentservice
calls notificationmanager.cancel(notification_id)
, launches activity in new task.
problem though call removes notification tray, not collapse drawer. called activity drawn behind drawer.
can please shed light on special code need close draw apart canceling notification?
thank you.
if action in form of broadcast or service intend notification drawer collapse, should broadcast android.intent.action.close_system_dialogs onreceive. manually close drawer.
Comments
Post a Comment