Close drawer on long click

This commit is contained in:
M66B 2018-12-24 10:57:03 +00:00
parent 84d09a381c
commit ad3e9534f6
1 changed files with 8 additions and 6 deletions

View File

@ -227,24 +227,26 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
DrawerItem item = (DrawerItem) parent.getAdapter().getItem(position); DrawerItem item = (DrawerItem) parent.getAdapter().getItem(position);
switch (item.getId()) { switch (item.getId()) {
case -1: case -1:
drawerLayout.closeDrawer(drawerList);
onMenuInbox((long) item.getData()); onMenuInbox((long) item.getData());
return true; break;
case R.string.menu_setup: case R.string.menu_setup:
onReload(); onReload();
return true; break;
case R.string.menu_faq: case R.string.menu_faq:
onDebugInfo(); onDebugInfo();
return true; break;
case R.string.menu_privacy: case R.string.menu_privacy:
onCleanup(); onCleanup();
return true; break;
case R.string.menu_about: case R.string.menu_about:
onShowLog(); onShowLog();
return true; break;
default: default:
return false; return false;
} }
drawerLayout.closeDrawer(drawerList);
return true;
} }
}); });