Android navigation architecture component - system's back button exits the app
I suppose, this is occurring in your code just because you might be handling the onBackPressed()
functionality somewhere in your BaseActivity
. Please look carefully.
I hope, this helps you.