fix typo in attribute

This commit is contained in:
Rainer-Lang 2017-04-20 20:29:41 +02:00 committed by GitHub
parent 15f31487e7
commit 8eea9ddccc

View File

@ -106,15 +106,15 @@ public class MainActivity extends BaseActivity<MainMvp.View, MainPresenter> impl
}
@Override public void onBackPressed() {
boolean clickTwichToExit = !PrefGetter.isTwiceBackButtonDisabled();
boolean clickTwiceToExit = !PrefGetter.isTwiceBackButtonDisabled();
if (drawerLayout != null) {
if (getPresenter().canBackPress(drawerLayout)) {
superOnBackPressed(clickTwichToExit);
superOnBackPressed(clickTwiceToExit);
} else {
drawerLayout.closeDrawer(GravityCompat.START);
}
} else {
superOnBackPressed(clickTwichToExit);
superOnBackPressed(clickTwiceToExit);
}
}