mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-27 17:08:34 +03:00
Change to not deprecated 'WorkManager.getInstance'
Signed-off-by: Tim Krüger <t@timkrueger.me>
This commit is contained in:
parent
d8f37bec42
commit
1d0ff0bade
1 changed files with 2 additions and 2 deletions
|
@ -534,7 +534,7 @@ class ConversationInfoController(args: Bundle) :
|
||||||
|
|
||||||
private fun leaveConversation() {
|
private fun leaveConversation() {
|
||||||
workerData?.let {
|
workerData?.let {
|
||||||
WorkManager.getInstance().enqueue(
|
WorkManager.getInstance(context).enqueue(
|
||||||
OneTimeWorkRequest.Builder(
|
OneTimeWorkRequest.Builder(
|
||||||
LeaveConversationWorker::class
|
LeaveConversationWorker::class
|
||||||
.java
|
.java
|
||||||
|
@ -597,7 +597,7 @@ class ConversationInfoController(args: Bundle) :
|
||||||
|
|
||||||
private fun deleteConversation() {
|
private fun deleteConversation() {
|
||||||
workerData?.let {
|
workerData?.let {
|
||||||
WorkManager.getInstance().enqueue(
|
WorkManager.getInstance(context).enqueue(
|
||||||
OneTimeWorkRequest.Builder(
|
OneTimeWorkRequest.Builder(
|
||||||
DeleteConversationWorker::class.java
|
DeleteConversationWorker::class.java
|
||||||
).setInputData(it).build()
|
).setInputData(it).build()
|
||||||
|
|
Loading…
Reference in a new issue