Closed RobinChien closed 3 years ago
Hi @RobinChien,
sorry for the delayed answer. The methods setCustomCondition()
and setCustomConditionToShowAgain()
are used for additional conditions. Therefore the days and the launch times will be counted anyway. If you want to use only the custom conditions you have to set the other checks to 0:
.setMinimumLaunchTimes(0)
.setMinimumDays(0)
.setMinimumLaunchTimesToShowAgain(0)
.setMinimumDaysToShowAgain(0)
Hi, I have tried setCustomCondition() and setCustomConditionToShowAgain(), but none of them worked.
Here is my testing code:
And in the Logcat can see the Custom condition result is true but the next log shows the Conditions not met
And in-depth study shouldShowDialog() of ConditionsChecker object. The result of checkCustomCondition() is true, but I didn't set the days, so the minimumDays check in return is false. So the dialog will not display.
ConditionsChecker.kt