Fixed closing navigation menu on clicking separator

pull/146/head
M66B 7 years ago
parent d73544c584
commit e24900a8a6

@ -177,6 +177,8 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
public void onItemClick(AdapterView<?> parent, View view, int position, long id) { public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
DrawerItem item = (DrawerItem) parent.getAdapter().getItem(position); DrawerItem item = (DrawerItem) parent.getAdapter().getItem(position);
switch (item.getId()) { switch (item.getId()) {
case 0: // separator
return;
case -1: case -1:
onMenuFolders((long) item.getData()); onMenuFolders((long) item.getData());
break; break;
@ -1124,6 +1126,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
private Object data; private Object data;
DrawerItem(int layout) { DrawerItem(int layout) {
this.id = 0;
this.layout = layout; this.layout = layout;
} }

Loading…
Cancel
Save