From 8540369cccd5de5e270fa7589229ce7ca01cdd4d Mon Sep 17 00:00:00 2001 From: Mario Danic Date: Sat, 29 Dec 2018 16:10:43 +0100 Subject: [PATCH] Update for new work manager Signed-off-by: Mario Danic --- .../main/java/com/nextcloud/talk/jobs/CapabilitiesWorker.java | 2 +- .../main/java/com/nextcloud/talk/jobs/NotificationWorker.java | 2 +- .../java/com/nextcloud/talk/jobs/PushRegistrationWorker.java | 2 +- .../main/java/com/nextcloud/talk/jobs/SignalingSettingsJob.java | 2 +- .../com/nextcloud/talk/jobs/WebsocketConnectionsWorker.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/jobs/CapabilitiesWorker.java b/app/src/main/java/com/nextcloud/talk/jobs/CapabilitiesWorker.java index 66232ab13..c6698f69a 100644 --- a/app/src/main/java/com/nextcloud/talk/jobs/CapabilitiesWorker.java +++ b/app/src/main/java/com/nextcloud/talk/jobs/CapabilitiesWorker.java @@ -163,6 +163,6 @@ public class CapabilitiesWorker extends Worker { }); } - return Result.SUCCESS; + return Result.success(); } } diff --git a/app/src/main/java/com/nextcloud/talk/jobs/NotificationWorker.java b/app/src/main/java/com/nextcloud/talk/jobs/NotificationWorker.java index ae3d51f7b..eaf8f705a 100644 --- a/app/src/main/java/com/nextcloud/talk/jobs/NotificationWorker.java +++ b/app/src/main/java/com/nextcloud/talk/jobs/NotificationWorker.java @@ -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(); } } diff --git a/app/src/main/java/com/nextcloud/talk/jobs/PushRegistrationWorker.java b/app/src/main/java/com/nextcloud/talk/jobs/PushRegistrationWorker.java index b56c2ebde..6a908ed21 100644 --- a/app/src/main/java/com/nextcloud/talk/jobs/PushRegistrationWorker.java +++ b/app/src/main/java/com/nextcloud/talk/jobs/PushRegistrationWorker.java @@ -42,6 +42,6 @@ public class PushRegistrationWorker extends Worker { pushUtils.generateRsa2048KeyPair(); pushUtils.pushRegistrationToServer(); - return Result.SUCCESS; + return Result.success(); } } diff --git a/app/src/main/java/com/nextcloud/talk/jobs/SignalingSettingsJob.java b/app/src/main/java/com/nextcloud/talk/jobs/SignalingSettingsJob.java index 64e185228..74719c72c 100644 --- a/app/src/main/java/com/nextcloud/talk/jobs/SignalingSettingsJob.java +++ b/app/src/main/java/com/nextcloud/talk/jobs/SignalingSettingsJob.java @@ -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(); } } diff --git a/app/src/main/java/com/nextcloud/talk/jobs/WebsocketConnectionsWorker.java b/app/src/main/java/com/nextcloud/talk/jobs/WebsocketConnectionsWorker.java index 128b68712..529f85257 100644 --- a/app/src/main/java/com/nextcloud/talk/jobs/WebsocketConnectionsWorker.java +++ b/app/src/main/java/com/nextcloud/talk/jobs/WebsocketConnectionsWorker.java @@ -81,6 +81,6 @@ public class WebsocketConnectionsWorker extends Worker { } } - return Result.SUCCESS; + return Result.success(); } }