Skip to content

Commit b30d9f0

Browse files
Add files via upload
1 parent 3b9d5c0 commit b30d9f0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/src/main/kotlin/com/google/ai/sample/MainActivity.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ class MainActivity : ComponentActivity() {
371371
showApiKeyDialog = true
372372
},
373373
onDonationButtonClicked = {
374-
Log.d(TAG, "MenuScreen onDonationButtonClicked: Initiating donation purchase.")
374+
Log.d(TAG, "MenuScreen onDonationButtonClicked: Initiating subscription purchase.")
375375
initiateDonationPurchase()
376376
},
377377
isTrialExpired = currentTrialState == TrialManager.TrialState.EXPIRED_INTERNET_TIME_CONFIRMED
@@ -505,7 +505,7 @@ class MainActivity : ComponentActivity() {
505505
}
506506
if (monthlyDonationProductDetails == null) {
507507
Log.e(TAG, "initiateDonationPurchase: Product details not loaded yet.")
508-
updateStatusMessage("Donation information is loading. Please wait a moment and try again.", true)
508+
updateStatusMessage("Subscription information is loading. Please wait a moment and try again.", true)
509509
Log.d(TAG, "initiateDonationPurchase: Attempting to reload product details.")
510510
queryProductDetails()
511511
return
@@ -516,7 +516,7 @@ class MainActivity : ComponentActivity() {
516516
val offerToken = productDetails.subscriptionOfferDetails?.firstOrNull()?.offerToken
517517
if (offerToken == null) {
518518
Log.e(TAG, "No offer token found for product: ${productDetails.productId}. SubscriptionOfferDetails size: ${productDetails.subscriptionOfferDetails?.size}")
519-
updateStatusMessage("Donation offer not found.", true)
519+
updateStatusMessage("subscription offer not found.", true)
520520
return@let
521521
}
522522
Log.d(TAG, "initiateDonationPurchase: Offer token found: $offerToken")
@@ -537,8 +537,8 @@ class MainActivity : ComponentActivity() {
537537
updateStatusMessage("Fehler beim Starten des Spendevorgangs: ${billingResult.debugMessage}", true)
538538
}
539539
} ?: run {
540-
Log.e(TAG, "initiateDonationPurchase: Donation product details are null even after check. This shouldn't happen.")
541-
updateStatusMessage("Donation product not available.", true)
540+
Log.e(TAG, "initiateDonationPurchase: Subscription product details are null even after check. This shouldn't happen.")
541+
updateStatusMessage("subscription product not available.", true)
542542
}
543543
}
544544

0 commit comments

Comments
 (0)