Show confirm exit dialog on emulator layout (#704)
This commit is contained in:
parent
48053164dc
commit
504258bf15
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue