}
protected boolean isInFilter(IndexEntry entry) {
TaskIndexEntry taskEntry = (TaskIndexEntry)entry;
int status = taskEntry.getStatus();
PrivateSettings privateSettings = PrivateSettings.getInstance();
switch (status) {
case Task.STATUS_NEEDS_ACTION:
return privateSettings.getShowNeedsActionTasks();
case Task.STATUS_COMPLETED:
return privateSettings.getShowCompletedTasks();
case Task.STATUS_IN_PROCESS:
return privateSettings.getShowInProcessTasks();
case Task.STATUS_CANCELLED:
return privateSettings.getShowCancelledTasks();
default:
return privateSettings.getShowUndefinedTasks();
}
}