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

Method onActionFlag

app/src/main/java/eu/faircode/email/EntityRule.java:1416–1426  ·  view source on GitHub ↗
(Context context, EntityMessage message, JSONObject jargs)

Source from the content-addressed store, hash-verified

1414 }
1415
1416 private boolean onActionFlag(Context context, EntityMessage message, JSONObject jargs) throws JSONException {
1417 Integer color = (jargs.has("color") && !jargs.isNull("color")
1418 ? jargs.getInt("color") : null);
1419
1420 EntityOperation.queue(context, message, EntityOperation.FLAG, true, color, false);
1421
1422 message.ui_flagged = true;
1423 message.color = color;
1424
1425 return true;
1426 }
1427
1428 private boolean onActionImportance(Context context, EntityMessage message, JSONObject jargs) throws JSONException {
1429 Integer importance = jargs.getInt("value");

Callers 1

_executeMethod · 0.95

Calls 3

queueMethod · 0.95
isNullMethod · 0.80
getIntMethod · 0.45

Tested by

no test coverage detected