HomeBlogWhat is the best way to avoid accidental repeated clicks on Any btn in android ?Problem and SolutionsWhat is the best way to avoid accidental repeated clicks on Any btn in android ?By M.K. Verma · 4 May 2022 fun NavController.safeNavigate(direction: NavDirections) { currentDestination?.getAction(direction.actionId)?.run { navigate(direction) } } And instead of navController.navigate, use navController.safeNavigate with the same arguments.Share this:CommentsLeave a commentPost