[Bug] Wrong tab behavior in Paywall UI from purchases-ui
- [x] I have updated Purchases SDK to the latest version
- [x] I have read the Contribution Guidelines
- [x] I have searched the Community
- [x] I have read docs.revenuecat.com
- [x] I have searched for existing Github issues
Describe the bug Wrong behavior of select package in UI when display paywall on Android app
https://github.com/user-attachments/assets/0667051e-285e-43e1-8b03-2181b8de4e89
- Environment
- Platform: Android
- SDK version:
implementation("com.revenuecat.purchases:purchases:8.17.1")
implementation("com.revenuecat.purchases:purchases-ui:8.20.0")
- OS version: Android API 35
- Android Studio version: Android Studio Meerkat | 2024.3.1
- How widespread is the issue. Percentage of devices affected.
- Debug logs that reproduce the issue
- Steps to reproduce, with a description of expected vs. actual behavior
- Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)
Additional context Add any other context about the problem here.
👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!
Thanks for the report! We are looking into 🫡
I found more infomation, the issue happens only in PaywallDialog. It works well in normal Paywall
So this is the code I used that cause the problem: https://revenuecat.github.io/codelab/android/codelab-2-android-sdk/index.html#4
PaywallDialog(
PaywallDialogOptions.Builder()
.setDismissRequest { }
.setOffering(offering)
.setFontProvider(..)
.setCustomPurchaseLogic(..)
.setListener(object : PaywallListener {
override fun onPurchaseStarted(rcPackage: Package) {
super.onPurchaseStarted(rcPackage)
}
override fun onPurchaseCompleted(customerInfo: CustomerInfo, storeTransaction: StoreTransaction) {
super.onPurchaseCompleted(customerInfo, storeTransaction)
customer = customerInfo
}
override fun onPurchaseError(error: PurchasesError) {
super.onPurchaseError(error)
}
override fun onPurchaseCancelled() {
super.onPurchaseCancelled()
}
})
.build()
)