Fix crash when selecting dividers on the Nav Drawer
This commit is contained in:
parent
be49ad29d1
commit
be130b85e4
|
@ -293,6 +293,8 @@ public class NavigationDrawerFragment extends Fragment {
|
|||
|
||||
}
|
||||
private void selectItem(DrawerItem item, int position) {
|
||||
if (item.type == DrawerItem.TYPE_DIVIDER) return;
|
||||
|
||||
if (mDrawerListView != null) {
|
||||
mDrawerListView.setItemChecked(position, true);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue