Update for new work manager

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2018-12-29 16:10:43 +01:00
parent 2788de29a3
commit 8540369ccc
5 changed files with 5 additions and 5 deletions

View file

@ -163,6 +163,6 @@ public class CapabilitiesWorker extends Worker {
});
}
return Result.SUCCESS;
return Result.success();
}
}

View file

@ -509,6 +509,6 @@ public class NotificationWorker extends Worker {
} catch (Exception exception) {
Log.d(TAG, "Something went very wrong " + exception.getLocalizedMessage());
}
return Result.SUCCESS;
return Result.success();
}
}

View file

@ -42,6 +42,6 @@ public class PushRegistrationWorker extends Worker {
pushUtils.generateRsa2048KeyPair();
pushUtils.pushRegistrationToServer();
return Result.SUCCESS;
return Result.success();
}
}

View file

@ -155,6 +155,6 @@ public class SignalingSettingsJob extends Worker {
OneTimeWorkRequest websocketConnectionsWorker = new OneTimeWorkRequest.Builder(WebsocketConnectionsWorker.class).build();
WorkManager.getInstance().enqueue(websocketConnectionsWorker);
return Result.SUCCESS;
return Result.success();
}
}

View file

@ -81,6 +81,6 @@ public class WebsocketConnectionsWorker extends Worker {
}
}
return Result.SUCCESS;
return Result.success();
}
}