mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Clarify the comments
This commit is contained in:
+3
-3
@@ -280,13 +280,13 @@ class LinkNewDeviceFlowNode(
|
|||||||
NavTarget.DesktopNotice -> {
|
NavTarget.DesktopNotice -> {
|
||||||
val callback = object : DesktopNoticeNode.Callback {
|
val callback = object : DesktopNoticeNode.Callback {
|
||||||
override fun navigateBack() {
|
override fun navigateBack() {
|
||||||
// reset the timer when the user leaves the screen (user will have to authenticate again)
|
// Stop the timer when the user leaves the screen (user will have to authenticate again)
|
||||||
linkNewDesktopHandler.reset()
|
linkNewDesktopHandler.reset()
|
||||||
backstack.pop()
|
backstack.pop()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun navigateToQrCodeScanner() {
|
override fun navigateToQrCodeScanner() {
|
||||||
// reset the timer when the user enters the next screen (they clicked on "Ready to scan")
|
// Start again the timer when the user enters the next screen (they clicked on "Ready to scan")
|
||||||
linkNewDesktopHandler.startTimer()
|
linkNewDesktopHandler.startTimer()
|
||||||
backstack.push(NavTarget.DesktopScanQrCode)
|
backstack.push(NavTarget.DesktopScanQrCode)
|
||||||
}
|
}
|
||||||
@@ -296,7 +296,7 @@ class LinkNewDeviceFlowNode(
|
|||||||
NavTarget.DesktopScanQrCode -> {
|
NavTarget.DesktopScanQrCode -> {
|
||||||
val callback = object : ScanQrCodeNode.Callback {
|
val callback = object : ScanQrCodeNode.Callback {
|
||||||
override fun cancel() {
|
override fun cancel() {
|
||||||
// reset the timer when the user goes back to the DesktopNoticeNode
|
// start again the timer when the user goes back to the DesktopNoticeNode
|
||||||
linkNewDesktopHandler.startTimer()
|
linkNewDesktopHandler.startTimer()
|
||||||
backstack.pop()
|
backstack.pop()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user