Skip to content

Collect flows with the lifecycle everywhere and remove runBlocking from BiometricTexts #125

Closed

Description

@pasichDev

Two small cleanups from the 3.0.0 release review. No user-visible failure was found for either.

  • collectAsState is used in about 83 places and collectAsStateWithLifecycle in 64. A StateFlow collected with collectAsState keeps its upstream (for example a Room flow behind an open sheet, NotesListScreen.kt) subscribed while the activity is stopped. Use collectAsStateWithLifecycle everywhere.
  • BiometricTextSource.current() calls runBlocking { refresh() } on the main thread when no refresh has run yet, for example when the process was started by the My Notes hand-off activity (BiometricTexts.kt). It reads about eight strings from assets once. Load the texts without blocking, or fall back to a default until they are ready.

Activity

  1. added
    enhancement
    on Nov 19, 2026
  2. pasichDev commented on Nov 21, 2026

    @pasichDev
    OwnerAuthor

    Fixed in #135, released in 3.0.1.

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions