1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 04:35:57 +00:00

Prune work

This commit is contained in:
M66B 2023-01-24 08:00:13 +01:00
parent f56dfef612
commit 5e0f84a26d

View file

@ -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;
}