ditch ThreadPoolExecutor for AsyncTask

This commit is contained in:
Vincent Breitmoser
2018-07-17 14:01:17 +02:00
parent 2c8e219aa8
commit 9e079329d5
13 changed files with 321 additions and 504 deletions

View File

@@ -94,17 +94,7 @@ public class KeyserverSyncWorker extends Worker {
return new Progressable() {
@Override
public void setProgress(String message, int current, int total) {
setProgress(current, total);
}
@Override
public void setProgress(int resourceId, int current, int total) {
setProgress(current, total);
}
@Override
public void setProgress(int current, int total) {
public void setProgress(Integer ignored, int current, int total) {
if (total == 0) {
notificationManager.cancel(NotificationIds.KEYSERVER_SYNC);
return;