Pass in the end-of-period value to the media backups are off alert fragment.

This commit is contained in:
Alex Hart
2024-11-08 15:02:58 -04:00
parent aa99a456d2
commit b39eff67a6
2 changed files with 15 additions and 12 deletions

View File

@@ -136,7 +136,7 @@ class InAppPaymentsBottomSheetDelegate(
if (isPaymentProcessingError(payment.state, payment.data)) {
BackupAlertBottomSheet.create(BackupAlert.FailedToRenew).show(fragmentManager, null)
} else if (isUnexpectedCancellation(payment.state, payment.data)) {
BackupAlertBottomSheet.create(BackupAlert.MediaBackupsAreOff).show(fragmentManager, null)
BackupAlertBottomSheet.create(BackupAlert.MediaBackupsAreOff(payment.endOfPeriodSeconds)).show(fragmentManager, null)
}
}
}