Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
PavloNetrebchuk committed Nov 1, 2023
1 parent c4dd89c commit 074b975
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ fun DefaultDialogBox(
Box(
modifier = Modifier
.fillMaxSize()
.padding(horizontal = 12.dp)
.noRippleClickable {
onDismissClock()
},
Expand Down
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 074b975

Please sign in to comment.