mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
There is no need to call job.cancel() when we are using viewModelScope()
This commit is contained in:
parent
2e52f429fb
commit
9f1e327fa5
3 changed files with 1 additions and 2 deletions
1
changelog.d/4602.misc
Normal file
1
changelog.d/4602.misc
Normal file
|
@ -0,0 +1 @@
|
|||
There is no need to call job.cancel() when we are using viewModelScope()
|
|
@ -143,7 +143,6 @@ class SearchViewModel @AssistedInject constructor(
|
|||
}
|
||||
|
||||
override fun onCleared() {
|
||||
currentTask?.cancel()
|
||||
super.onCleared()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -233,7 +233,6 @@ class RoomDirectoryViewModel @AssistedInject constructor(
|
|||
}
|
||||
|
||||
override fun onCleared() {
|
||||
currentJob?.cancel()
|
||||
super.onCleared()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue