Skip to content

fix: reset the quickpay daily count after a future date is corrected #2189

Backlog

Description

@jvsena42

Part of #2105.
Source: review, #2188

On the watch, QuickPaySpendStore keeps the day's QuickPay spend under the local date it was counted on. When the watch's date was once set ahead and then corrected, an earlier date never starts a new count. The count therefore stays on that future day, and QuickPay holds every payment over the limit until the date catches up.

It is conservative and matches the phone's QuickPaySpendStore.

Proposal

  • Start a new count when the stored date is ahead of today by more than a day, on both phone and watch, or reset it when the wall clock jumps backward.

Done when

  • Unit tests cover a date set ahead then corrected, on the watch (and the phone if it changes too).

Found in review round 1 of the Wear OS settings sync PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions