requireActivity()
.onBackPressedDispatcher
.addCallback(viewLifecycleOwner, object : OnBackPressedCallback(true) {
override fun handleOnBackPressed() {
if (isEnabled) {
Log.d("test", "handleOnBackPressed: ")
}
}
}
)
网友评论