Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
PavloNetrebchuk committed Oct 31, 2023
1 parent c4dd89c commit 1f55aaf
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,12 @@ class ThankYouDialogFragment : BaseAppReviewDialogFragment() {
val request = reviewManager.requestReviewFlow()
request.addOnCompleteListener { task ->
try {
val reviewInfo = task.result
val flow = reviewManager.launchReviewFlow(requireActivity(), reviewInfo)
flow.addOnCompleteListener { _ ->
onPositiveRate()
if (request.isSuccessful) {
val reviewInfo = task.result
val flow = reviewManager.launchReviewFlow(requireActivity(), reviewInfo)
flow.addOnCompleteListener { _ ->
onPositiveRate()
}
dismiss()
}
} catch (e: ReviewException) {
Expand Down

0 comments on commit 1f55aaf

Please sign in to comment.