playgameservices / android-basic-samples

Google Play game services - Android samples
Apache License 2.0
972 stars 971 forks source link

TypeANumber Project achievements incremented every onConnect #262

Closed jpunzak closed 6 years ago

jpunzak commented 6 years ago

Incremental achievements are always incremented during onConnect, even if game is not played. This is because outbox isEmpty condition is always false, since mBoredSteps is never reset to zero. Solution:. Set mBoredSteps to zero after incrementing Achievements.

jpunzak commented 6 years ago

Addendum:. I should have said outbox isEmpty is always false after one play of the game. After that incremental achievements are inadvertently incremented every call to onConnected, even if game is idle and not played.