mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 04:35:57 +00:00
Prune work
This commit is contained in:
parent
f56dfef612
commit
5e0f84a26d
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue