Show confirm exit dialog on emulator layout

This commit is contained in:
Luna712 2023-10-21 12:45:15 -06:00
parent c9bffef7cb
commit fad9ef3583

View file

@ -662,7 +662,7 @@ class MainActivity : AppCompatActivity(), ColorPickerDialogListener {
val isAtHome = val isAtHome =
navController?.currentDestination?.matchDestination(R.id.navigation_home) == true navController?.currentDestination?.matchDestination(R.id.navigation_home) == true
if (isAtHome && isTrueTvSettings()) { if (isAtHome && isTvSettings()) {
showConfirmExitDialog() showConfirmExitDialog()
} else { } else {
super.onBackPressed() super.onBackPressed()