Depends on D10969
Problem:
Open MprisActivity and play something. Then tap on the media notification and MprisActivity opens again. Two back presses are needed to go back to the main Activity. This patch makes sure that only one press is needed.
mtijink |
KDE Connect |
Depends on D10969
Problem:
Open MprisActivity and play something. Then tap on the media notification and MprisActivity opens again. Two back presses are needed to go back to the main Activity. This patch makes sure that only one press is needed.
Only one back press needed
No Linters Available |
No Unit Test Coverage |
Does it make sense to add this for other activities as well?
Also, we have to implement onNewIntent with this launch mode (which should switch the selected player to the requested player).
I don't think something like this can happen to another Activity since afaik there is no second way to open the activities (like the MPRIS notification)
Wouldn't it make more sense to change the player controlled by the notification to the one selected in the Activity? It should make sense since I see no easy way to determine which player is controlled by the notification other than pausing players until the notification shows the right one.
Yes, that's a good idea too. I had that on my backlog of possible mpris improvements too 😉
But I think we should support onNewIntent too.