Skip to content

Fix Android QR scanner lifecycle and location fallback - #899

Draft
liuyunming521520-cell wants to merge 1 commit into
permissionlesstech:mainfrom
liuyunming521520-cell:fix/android-camera-location-recovery
Draft

Fix Android QR scanner lifecycle and location fallback#899
liuyunming521520-cell wants to merge 1 commit into
permissionlesstech:mainfrom
liuyunming521520-cell:fix/android-camera-location-recovery

Conversation

@liuyunming521520-cell

Copy link
Copy Markdown

Summary

  • make QR scanner CameraX bindings session-scoped and dispose only their own use cases
  • surface camera-unavailable recovery instead of leaving the scanner unusable
  • fall back to the Android system location provider when Fused Location returns no result or rejects updates
  • show an accurate location-notes availability message

Validation

  • :app:compileDebugKotlin --rerun-tasks
  • :app:assembleDebug
  • :app:lintDebug (the task completes; the repository has existing lint findings)
  • manual device verification: QR scanning lifecycle and location notes both work after the change

Test limitation

  • :app:testDebugUnitTest is currently blocked in this checkout by an existing test-runner classpath issue: compiled test classes are not found by the runner.

@liuyunming521520-cell
liuyunming521520-cell force-pushed the fix/android-camera-location-recovery branch from a456f12 to dcee3b4 Compare August 21, 2026 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant