mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 18:00:02 +01:00
Add restore type check and download specific messaging.
This commit is contained in:
committed by
Cody Henthorne
parent
ac9f6c0b4a
commit
c0f3189a5b
@@ -99,6 +99,7 @@ import org.thoughtcrime.securesms.backup.v2.ui.BackupAlert
|
||||
import org.thoughtcrime.securesms.backup.v2.ui.BackupAlertBottomSheet
|
||||
import org.thoughtcrime.securesms.backup.v2.ui.status.BackupStatusData
|
||||
import org.thoughtcrime.securesms.backup.v2.ui.status.BackupStatusRow
|
||||
import org.thoughtcrime.securesms.backup.v2.ui.status.RestoreType
|
||||
import org.thoughtcrime.securesms.backup.v2.ui.subscription.MessageBackupsType
|
||||
import org.thoughtcrime.securesms.billing.launchManageBackupsSubscription
|
||||
import org.thoughtcrime.securesms.components.compose.BetaHeader
|
||||
@@ -402,7 +403,7 @@ private fun RemoteBackupsSettingsContent(
|
||||
if (backupDeleteState != DeletionState.NONE && backupDeleteState != DeletionState.CLEAR_LOCAL_STATE) {
|
||||
contentCallbacks.onDialogDismissed()
|
||||
}
|
||||
|
||||
|
||||
if (backupDeleteState == DeletionState.AWAITING_MEDIA_DOWNLOAD) {
|
||||
contentCallbacks.onDisplayDownloadingBackupDialog()
|
||||
}
|
||||
@@ -655,6 +656,7 @@ private fun LazyListScope.appendRestoreFromBackupStatusData(
|
||||
item {
|
||||
BackupStatusRow(
|
||||
backupStatusData = backupRestoreState.backupStatusData,
|
||||
restoreType = RestoreType.DOWNLOAD,
|
||||
onCancelClick = if (isCancelable) contentCallbacks::onCancelMediaRestore else null,
|
||||
onSkipClick = contentCallbacks::onDisplaySkipMediaRestoreProtectionDialog,
|
||||
onLearnMoreClick = contentCallbacks::onLearnMoreAboutBackupFailure
|
||||
|
||||
Reference in New Issue
Block a user