forked from github/szkolny
[UX] Fix back button opens drawer function always opening the drawer.
This commit is contained in:
parent
18c7eea89c
commit
6f1ec79d9b
@ -1151,7 +1151,7 @@ class MainActivity : AppCompatActivity(), CoroutineScope {
|
||||
private var targetHomeId: Int = -1
|
||||
override fun onBackPressed() {
|
||||
if (!b.navView.onBackPressed()) {
|
||||
if (App.config.ui.openDrawerOnBackPressed) {
|
||||
if (App.config.ui.openDrawerOnBackPressed && navTarget.popTo == null && navTarget.popToHome) {
|
||||
b.navView.drawer.toggle()
|
||||
} else {
|
||||
navigateUp()
|
||||
|
Loading…
Reference in New Issue
Block a user