Skip to content

L1: VaultPlayerViewModel skip-forward collapses to 0 when duration unknown #564

Closed

Description

@libravault-xyz

VaultPlayerViewModel.onSkipForward collapses "+30s" to 0 when duration is unknown (C.TIME_UNSET is negative, clamping against duration.coerceAtLeast(0) collapses the target to 0 instead of a no-op-sized nudge forward). Guard duration > 0 before computing the target.

A correct, tested fix already exists in the now-closed PR #537 (split from #530, which hit dev-agent's turn cap after 5 of 8 findings) — see its diff for skipForwardTarget(), a pure extracted helper with a direct unit test (VaultPlayerSkipForwardTargetTest.kt). Rebase that forward or reimplement following the same pattern.

Labels: bug, android

Activity

  1. added
    bug
    status:ready-for-dev
    on Aug 25, 2026
  2. added
    status:in-progress
    on Aug 25, 2026
  3. removed
    status:ready-for-dev
    status:in-progress
    on Aug 25, 2026
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

    androidbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions