From 5e0f84a26dbd6d93f1bc6b8777122dd280d118d2 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 24 Jan 2023 08:00:13 +0100 Subject: [PATCH] Prune work --- app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java b/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java index f62a82a9a3..b1f7a1cead 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java @@ -80,6 +80,7 @@ import androidx.cardview.widget.CardView; import androidx.constraintlayout.widget.Group; import androidx.lifecycle.Observer; import androidx.preference.PreferenceManager; +import androidx.work.WorkManager; import com.google.android.material.textfield.TextInputLayout; @@ -2112,6 +2113,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc @Override protected Void onExecute(Context context, Bundle args) { WorkerCleanup.cleanup(context, true); + WorkManager.getInstance(context).pruneWork(); return null; }