Replace message-backups TODO with backups.

This commit is contained in:
Alex Hart
2024-11-04 09:18:57 -04:00
parent 4d39679144
commit 19c3075bc6
8 changed files with 22 additions and 22 deletions

View File

@@ -60,7 +60,7 @@ class GatewaySelectorBottomSheet : DSLSettingsBottomSheetFragment() {
private fun getConfiguration(state: GatewaySelectorState): DSLConfiguration {
return configure {
// TODO [message-backups] -- No badge on message backups.
// TODO [backups] -- No badge on message backups.
customPref(
BadgeDisplay112.Model(
badge = state.inAppPayment.data.badge!!.let { Badges.fromDatabaseBadge(it) },
@@ -209,7 +209,7 @@ class GatewaySelectorBottomSheet : DSLSettingsBottomSheetFragment() {
fun DSLConfiguration.presentTitleAndSubtitle(context: Context, inAppPayment: InAppPaymentTable.InAppPayment) {
when (inAppPayment.type) {
InAppPaymentType.UNKNOWN -> error("Unsupported type UNKNOWN")
InAppPaymentType.RECURRING_BACKUP -> error("This type is not supported") // TODO [message-backups] necessary?
InAppPaymentType.RECURRING_BACKUP -> error("This type is not supported") // TODO [backups] necessary?
InAppPaymentType.RECURRING_DONATION -> presentMonthlyText(context, inAppPayment)
InAppPaymentType.ONE_TIME_DONATION -> presentOneTimeText(context, inAppPayment)
InAppPaymentType.ONE_TIME_GIFT -> presentGiftText(context, inAppPayment)

View File

@@ -70,7 +70,7 @@ class PayPalPaymentInProgressFragment : DialogFragment(R.layout.donation_in_prog
}
InAppPaymentProcessorAction.CANCEL_SUBSCRIPTION -> {
viewModel.cancelSubscription(InAppPaymentSubscriberRecord.Type.DONATION) // TODO [message-backups] Remove hardcode
viewModel.cancelSubscription(InAppPaymentSubscriberRecord.Type.DONATION) // TODO [backups] Remove hardcode
}
}
}

View File

@@ -99,8 +99,8 @@ class DonationErrorParams<V> private constructor(
)
else -> DonationErrorParams(
title = R.string.DonationsErrors__couldnt_add_badge, // TODO [message-backups] -- This will need a backups-specific string
message = R.string.DonationsErrors__your_badge_could_not, // TODO [message-backups] -- This will need a backups-specific string
title = R.string.DonationsErrors__couldnt_add_badge, // TODO [backups] -- This will need a backups-specific string
message = R.string.DonationsErrors__your_badge_could_not, // TODO [backups] -- This will need a backups-specific string
positiveAction = callback.onContactSupport(context),
negativeAction = null
)