File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
app/src/main/java/org/thoughtcrime/securesms/linkdevice Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ import kotlinx.coroutines.flow.asStateFlow
99import kotlinx.coroutines.flow.update
1010import kotlinx.coroutines.launch
1111import org.signal.core.util.logging.Log
12- import org.thoughtcrime.securesms.dependencies.AppDependencies
13- import org.thoughtcrime.securesms.jobmanager.JobTracker
1412import org.thoughtcrime.securesms.jobs.LinkedDeviceInactiveCheckJob
1513import org.thoughtcrime.securesms.linkdevice.LinkDeviceRepository.LinkDeviceResult
1614import org.thoughtcrime.securesms.linkdevice.LinkDeviceRepository.getPlaintextDeviceName
@@ -35,17 +33,10 @@ class LinkDeviceViewModel : ViewModel() {
3533 private val _state = MutableStateFlow (LinkDeviceSettingsState ())
3634 val state = _state .asStateFlow()
3735
38- private lateinit var listener: JobTracker .JobListener
39-
4036 fun initialize () {
4137 loadDevices()
4238 }
4339
44- override fun onCleared () {
45- super .onCleared()
46- AppDependencies .jobManager.removeListener(listener)
47- }
48-
4940 fun setDeviceToRemove (device : Device ? ) {
5041 _state .update { it.copy(deviceToRemove = device) }
5142 }
You can’t perform that action at this time.
0 commit comments