Prevent crash

pull/184/head
M66B 4 years ago
parent 9324bee13c
commit 7cf97eeaf9

@ -147,9 +147,13 @@ public class WorkerFts extends Worker {
}
static void cancel(Context context) {
try {
Log.i("Cancelling " + getName());
WorkManager.getInstance(context).cancelUniqueWork(getName());
Log.i("Cancelled " + getName());
} catch (IllegalStateException ex) {
Log.w(ex);
}
}
private static String getName() {

Loading…
Cancel
Save