Skip to content

Commit

Permalink
* fix wrong position gets selected in the MiniDrawer if there are ite…
Browse files Browse the repository at this point in the history
…ms which are not shown in the MiniDrawer

 * FIX mikepenz#1324
  • Loading branch information
mikepenz committed Jun 6, 2016
1 parent 40a401c commit 59b168c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -431,13 +431,16 @@ public void createItems() {
if (getDrawerItems() != null) {
//migrate to miniDrawerItems
int length = getDrawerItems().size();

int position = 0;
for (int i = 0; i < length; i++) {
IDrawerItem miniDrawerItem = generateMiniDrawerItem(getDrawerItems().get(i));
if (miniDrawerItem != null) {
if (miniDrawerItem.isSelected()) {
select = i;
select = position;
}
mAdapter.add(miniDrawerItem);
position = position + 1;
}
}

Expand Down

0 comments on commit 59b168c

Please sign in to comment.