So in my app i have notification with pause/play action, when user clicks on the action, notification bar is closing. How can i prevent notification bar from closing upon action click?
I've already done .setAutoCancel(false);
Here I've found a "problem": https://stackoverflow.com/a/53476100/10766642
PendingIntent.getActivity(...)
- it closes notification bar.
And yes, I have this lines too:
PendingIntent btn1 = PendingIntent.getActivity(parent, (int)(Math.random()), intent, PendingIntent.FLAG_UPDATE_CURRENT);
view.setOnClickPendingIntent(R.id.btn1, btn1);
How can i prevent notification bar closing without using PendingIntent.getService(...)
or PendingIntent.getBroadcast(...)
?