Disable separators

pull/153/head
M66B 6 years ago
parent 44df12724f
commit 13c2a92cfb

@ -78,6 +78,6 @@ public class DrawerAdapter extends ArrayAdapter<DrawerItem> {
@Override
public boolean isEnabled(int position) {
DrawerItem item = getItem(position);
return (item != null && item.getId() != 0);
return (item != null && item.isEnabled());
}
}

@ -51,6 +51,10 @@ public class DrawerItem {
return this.id;
}
boolean isEnabled() {
return (this.layout != R.layout.item_drawer_separator);
}
int getMenuId() {
return this.menu;
}

Loading…
Cancel
Save