Skip to content

fix(messenger): clear the two lint errors from the request sheets - #1860

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/request-sheet-locale
Oct 27, 2026
Merged

bmc08gt merged 1 commit into
code/cashfrom
fix/request-sheet-locale

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

:apps:flipcash:app:lintDebug fails on code/cash (run 40400252946) with two errors that came in with #1851:

  • TimeToPaySheet.kt:318 NonObservableLocale: the day grid read Locale.getDefault() in composition, so it would not pick up a locale change. It reads LocalLocale.current.platformLocale now, as lint suggests.
  • MessengerScreen.kt:483 RememberReturnType: the remember that attaches the request deck before the deck is read returned Unit. It returns the attached chat now (?.also in place of ?.let). attach still runs once per chat and before the deck is read, so a chat with known requests still shows its deck on the first frame.

The CI log only names the first error; the second came from running :apps:flipcash:features:messenger:lintDebug locally.

lintDebug fails on code/cash with two errors from #1851:

- NonObservableLocale: the time-to-pay day grid read Locale.getDefault()
  in composition, so it would miss a locale change. It reads
  LocalLocale.current.platformLocale now.
- RememberReturnType: the remember that attaches the request deck before
  it is read returned Unit. It returns the attached chat now; attach still
  runs once per chat, before the deck is read.
@bmc08gt bmc08gt self-assigned this Oct 27, 2026
@github-actions github-actions Bot added the type: fix Bug fix label Oct 27, 2026
@bmc08gt
bmc08gt merged commit acce289 into code/cash Oct 27, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant