Skip to content

Commit 94dd566

Browse files
committed
* scroll to top in the drawer
1 parent 515fe15 commit 94dd566

File tree

1 file changed

+4
-0
lines changed
  • library/src/main/java/com/mikepenz/materialdrawer

1 file changed

+4
-0
lines changed

library/src/main/java/com/mikepenz/materialdrawer/Drawer.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,10 @@ public void onNothingSelected(AdapterView<?> parent) {
468468
});
469469
}
470470

471+
if (mListView != null) {
472+
mListView.smoothScrollToPosition(0);
473+
}
474+
471475
return new Result(this);
472476
}
473477

0 commit comments

Comments
 (0)