mirror of
https://github.com/kuba2k2/NavLib.git
synced 2025-01-18 06:16:43 -06:00
Fix changing drawer selection instead of adding another
This commit is contained in:
parent
8a0e0438a5
commit
556d568228
@ -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"
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user