They have already asked here.
But basically, there is no such function ... Maybe you could save a collection of all types of activities and finish them yourself, but I doubt this good practice.
Or, if all your actions are in the same "stack", you can try the answer given by "user370305".
source share