mirror of https://github.com/M66B/FairEmail.git
Close drawer on long click
This commit is contained in:
parent
84d09a381c
commit
ad3e9534f6
|
@ -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;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue