If popBackStack()
function of nav-controller is used to pop the last screen on user action, it can pop more than one screen when the button is clicked multiple times fast.
navigateUp()
of nav-controller should be used when the last screen needs to be popped on user action. This function won't pop more than one screen when the button is clicked multiple times fast.