Merge "Wait for RecentsActivity to stop after dismissing all tasks" into main