Hello,
this is my onBackPressed-Method:
My problem is, that the app does not close if the confirmCloseAppDialog is showing. Where is the problem?
Kind regards!
this is my onBackPressed-Method:
Java:
@Override
public void onBackPressed() {
if(drawer != null && drawer.isDrawerOpen(GravityCompat.START)) {
drawer.closeDrawer(GravityCompat.START)
} else if(confirmCloseAppDialog != null && confirmCloseAppDialog.isShowing()) {
closeApp();
} else {
confirmCloseAppDialog.show();
}
}
My problem is, that the app does not close if the confirmCloseAppDialog is showing. Where is the problem?
Kind regards!