MCPcopy Create free account
hub / github.com/M66B/FairEmail / onExecute

Method onExecute

app/src/main/java/eu/faircode/email/AdapterLog.java:116–130  ·  view source on GitHub ↗
(Context context, Bundle args)

Source from the content-addressed store, hash-verified

114
115 new SimpleTask<List<EntityLog>>() {
116 @Override
117 protected List<EntityLog> onExecute(Context context, Bundle args) throws Throwable {
118 List<EntityLog> items = new ArrayList<>();
119 for (EntityLog log : logs)
120 if (account == null && folder == null && message == null) {
121 if (types.contains(log.type))
122 items.add(log);
123 } else {
124 if ((account == null || account.equals(log.account)) &&
125 (folder == null || folder.equals(log.folder)) &&
126 (message == null || message.equals(log.message)))
127 items.add(log);
128 }
129 return items;
130 }
131
132 @Override
133 protected void onExecuted(Bundle args, List<EntityLog> items) {

Callers

nothing calls this directly

Calls 3

containsMethod · 0.45
addMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected