Provide retry UX for tier restore network failures.

This commit is contained in:
Cody Henthorne
2025-03-31 11:30:49 -04:00
committed by Greyson Parrelli
parent 9b527f7c6c
commit eb44dd4318
11 changed files with 363 additions and 36 deletions

View File

@@ -32,6 +32,14 @@ val RestoreDecisionState.isWantingManualRemoteRestore: Boolean
else -> false
}
val RestoreDecisionState.includeDeviceToDeviceTransfer: Boolean
get() = when (this.decisionState) {
RestoreDecisionState.State.INTEND_TO_RESTORE -> {
this.intendToRestoreData?.hasOldDevice == true
}
else -> true
}
/** Has a final decision been made regarding restoring. */
val RestoreDecisionState.isTerminal: Boolean
get() = !isDecisionPending