mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 01:19:33 +00:00
Rename vars.
This commit is contained in:
+6
-6
@@ -78,21 +78,21 @@ class LinkNewDeviceFlowNode(
|
|||||||
|
|
||||||
override fun onBuilt() {
|
override fun onBuilt() {
|
||||||
super.onBuilt()
|
super.onBuilt()
|
||||||
var job1: Job? = null
|
var linkMobileHandlerJob: Job? = null
|
||||||
var job2: Job? = null
|
var linkDesktopHandlerJob: Job? = null
|
||||||
|
|
||||||
lifecycle.subscribe(
|
lifecycle.subscribe(
|
||||||
onCreate = {
|
onCreate = {
|
||||||
linkNewMobileHandler.reset()
|
linkNewMobileHandler.reset()
|
||||||
linkNewDesktopHandler.reset()
|
linkNewDesktopHandler.reset()
|
||||||
@Suppress("AssignedValueIsNeverRead")
|
@Suppress("AssignedValueIsNeverRead")
|
||||||
job1 = observeLinkNewMobileHandler()
|
linkMobileHandlerJob = observeLinkNewMobileHandler()
|
||||||
@Suppress("AssignedValueIsNeverRead")
|
@Suppress("AssignedValueIsNeverRead")
|
||||||
job2 = observeLinkNewDesktopHandler()
|
linkDesktopHandlerJob = observeLinkNewDesktopHandler()
|
||||||
},
|
},
|
||||||
onDestroy = {
|
onDestroy = {
|
||||||
job1?.cancel()
|
linkMobileHandlerJob?.cancel()
|
||||||
job2?.cancel()
|
linkDesktopHandlerJob?.cancel()
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user