Merge pull request #8200 from TacoTheDank/drawerLayoutSimpler
Use simpler DrawerLayout method
This commit is contained in:
commit
85b5cb55de
|
@ -721,7 +721,7 @@ public class MainActivity extends AppCompatActivity {
|
||||||
if (toggle != null) {
|
if (toggle != null) {
|
||||||
toggle.syncState();
|
toggle.syncState();
|
||||||
toolbarLayoutBinding.toolbar.setNavigationOnClickListener(v -> mainBinding.getRoot()
|
toolbarLayoutBinding.toolbar.setNavigationOnClickListener(v -> mainBinding.getRoot()
|
||||||
.openDrawer(GravityCompat.START));
|
.open());
|
||||||
mainBinding.getRoot().setDrawerLockMode(DrawerLayout.LOCK_MODE_UNDEFINED);
|
mainBinding.getRoot().setDrawerLockMode(DrawerLayout.LOCK_MODE_UNDEFINED);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue