mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-27 16:10:58 +01:00
Disable navigation separator click
This commit is contained in:
@@ -177,8 +177,6 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
||||
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|
||||
DrawerItem item = (DrawerItem) parent.getAdapter().getItem(position);
|
||||
switch (item.getId()) {
|
||||
case 0: // separator
|
||||
return;
|
||||
case -1:
|
||||
onMenuFolders((long) item.getData());
|
||||
break;
|
||||
@@ -1024,6 +1022,12 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
||||
|
||||
return row;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEnabled(int position) {
|
||||
DrawerItem item = getItem(position);
|
||||
return (item != null && item.id != 0);
|
||||
}
|
||||
}
|
||||
|
||||
BroadcastReceiver receiver = new BroadcastReceiver() {
|
||||
|
||||
Reference in New Issue
Block a user