Skip to content

Commit

Permalink
Revert "Some users might click no accidentally, this will consider no…
Browse files Browse the repository at this point in the history
… as 'maybe'"

This reverts commit 12ec98a.

This actually didn't work as intended as noButtonPressed is still handled differently at some point which leads to repeated Dialog being displayed.
  • Loading branch information
tomekit committed Aug 6, 2023
1 parent 12ec98a commit 31caa2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/conditions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ class DoNotOpenAgainCondition extends DebuggableCondition {

@override
bool onEventOccurred(RateMyAppEventType eventType) {
if (eventType == RateMyAppEventType.rateButtonPressed) { // eventType == RateMyAppEventType.noButtonPressed
if (eventType == RateMyAppEventType.rateButtonPressed ||
eventType == RateMyAppEventType.noButtonPressed) {
doNotOpenAgain = true;
return true;
}
Expand Down

0 comments on commit 31caa2a

Please sign in to comment.