Fix: Fixed home press
Signed-off-by: HeCodes2Much <wayne6324@gmail.com>
This commit is contained in:
@@ -261,9 +261,8 @@ class MainActivity : AppCompatActivity() {
|
||||
|
||||
@Deprecated("Deprecated in Java")
|
||||
override fun onBackPressed() {
|
||||
navController = findNavController(R.id.nav_host_fragment_content_main)
|
||||
backToHomeScreen()
|
||||
@Suppress("DEPRECATION")
|
||||
if (navController.currentDestination?.id != R.id.HomeFragment)
|
||||
super.onBackPressed()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user