-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crashes when trying to launch activity in ConfirmButtonClickListener #48
Comments
Hi @rosenpin, the crash occurs because the app goes into background when your Having said that your code won't work either way. Even if you open the Play Store listing yourself you'll not be able to prevent the library from showing the second dialog. Skipping it isn't possible at the moment. PS: It doesn't help you with the issue but you could also use the method provided by the library to open the Play Store listing: |
Thanks for the detailed response :) It's just that it's a very weird behavior, I wouldn't expect my app to crash when trying to start an activity on a dialog close callback, I think this should defiantly be avoided by default (without the use of livesata) if possible |
You're right. I'm aware of this issue and will probably fix it with the next release. In the meantime you can use LiveData/Flow/... to bypass the crash. |
@SuddenH4X can it be related to my issue #50 ? |
Fixed with #59. |
Hi again
I'm trying to launch the play store activity if the user rated 4+ (skipping the second dialog, I don't think it's necessary)
Here is my code:
When I tap the confirm button, my app crashes with the dialog, this is the error
This is the full stack trace
The text was updated successfully, but these errors were encountered: