Fix changing drawer selection instead of adding another

This commit is contained in:
Kuba Szczodrzyński 2021-03-21 22:20:24 +01:00
parent 8a0e0438a5
commit 556d568228
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ dependencies {
implementation "com.google.android.material:material:1.3.0"
api "com.mikepenz:materialize:1.2.1"
api "pl.szczodrzynski:materialdrawer:7e083334f2"
api "com.mikepenz:materialdrawer:8.3.3"
api "com.mikepenz:iconics-core:5.2.8"
api "com.mikepenz:itemanimators:1.1.0"

View File

@ -475,7 +475,7 @@ class NavDrawer(
}
if (drawer.selectedItemIdentifier != id.toLong() || !fireOnClick)
drawer.setSelection(id.toLong(), fireOnClick)
drawer.setSelectionAtPosition(drawer.getPosition(id.toLong()), fireOnClick)
miniDrawer.setSelection(-1L)
if (drawerMode == DRAWER_MODE_MINI)