Clarify the comments

This commit is contained in:
Benoit Marty
2026-08-17 10:30:57 +02:00
parent d0a1011638
commit 2ac11ebe14
@@ -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()
} }