mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-21 04:29:45 +01:00
Update for new work manager
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
2788de29a3
commit
8540369ccc
@ -163,6 +163,6 @@ public class CapabilitiesWorker extends Worker {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return Result.SUCCESS;
|
return Result.success();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -509,6 +509,6 @@ public class NotificationWorker extends Worker {
|
|||||||
} catch (Exception exception) {
|
} catch (Exception exception) {
|
||||||
Log.d(TAG, "Something went very wrong " + exception.getLocalizedMessage());
|
Log.d(TAG, "Something went very wrong " + exception.getLocalizedMessage());
|
||||||
}
|
}
|
||||||
return Result.SUCCESS;
|
return Result.success();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -42,6 +42,6 @@ public class PushRegistrationWorker extends Worker {
|
|||||||
pushUtils.generateRsa2048KeyPair();
|
pushUtils.generateRsa2048KeyPair();
|
||||||
pushUtils.pushRegistrationToServer();
|
pushUtils.pushRegistrationToServer();
|
||||||
|
|
||||||
return Result.SUCCESS;
|
return Result.success();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -155,6 +155,6 @@ public class SignalingSettingsJob extends Worker {
|
|||||||
OneTimeWorkRequest websocketConnectionsWorker = new OneTimeWorkRequest.Builder(WebsocketConnectionsWorker.class).build();
|
OneTimeWorkRequest websocketConnectionsWorker = new OneTimeWorkRequest.Builder(WebsocketConnectionsWorker.class).build();
|
||||||
WorkManager.getInstance().enqueue(websocketConnectionsWorker);
|
WorkManager.getInstance().enqueue(websocketConnectionsWorker);
|
||||||
|
|
||||||
return Result.SUCCESS;
|
return Result.success();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -81,6 +81,6 @@ public class WebsocketConnectionsWorker extends Worker {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return Result.SUCCESS;
|
return Result.success();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user