dbachelder / CreditCardEntry

Smooth UI for Credit Card Entry on Android device, regex check for supported credit card types and luhn check. Inspired by Square credit card entry interface
MIT License
503 stars 166 forks source link

Fix CreditCardForm#isCreditCardValid(). #16

Closed kojustin closed 9 years ago

kojustin commented 9 years ago

CreditCardForm#isCreditCardValid() always returns if called from the CardValidCallback#cardValid(). This is because the base credit cards fields are not calling setValid() until AFTER they call the delegate's update methods. This patch just reverses the order of the delegate and setValid() calls.

dbachelder commented 9 years ago

thanks!