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

Method cancel

app/src/main/java/eu/faircode/email/WorkerFts.java:168–176  ·  view source on GitHub ↗
(Context context)

Source from the content-addressed store, hash-verified

166 }
167
168 static void cancel(Context context) {
169 try {
170 Log.i("Cancelling " + getName());
171 WorkManager.getInstance(context).cancelUniqueWork(getName());
172 Log.i("Cancelled " + getName());
173 } catch (IllegalStateException ex) {
174 Log.w(ex);
175 }
176 }
177
178 private static String getName() {
179 return WorkerFts.class.getSimpleName();

Callers 2

onChangedMethod · 0.95
initMethod · 0.95

Calls 4

iMethod · 0.95
getNameMethod · 0.95
wMethod · 0.95
getInstanceMethod · 0.45

Tested by

no test coverage detected