fix(android): use Google Code Scanner for onboarding QR#45021
Merged
Conversation
Contributor
Greptile SummaryThis PR replaces the legacy JourneyApps ZXing activity-based QR scanner with Google Code Scanner ( Changes:
Issues found:
Confidence Score: 4/5
Prompt To Fix All With AIThis is a comment left during a code review.
Path: apps/android/app/src/main/java/ai/openclaw/app/ui/OnboardingFlow.kt
Line: 251
Comment:
**Scanner client not closed on disposal**
`GmsBarcodeScanner` implements `AutoCloseable`. The client returned by `GmsBarcodeScanning.getClient(...)` should be closed when the composable leaves composition to release its connection to Play Services. Currently there is no `DisposableEffect` that calls `qrScanner.close()`, so the connection is held until the `remember` slot is garbage-collected.
Add a companion `DisposableEffect` right after this `remember` call:
```kotlin
val qrScanner = remember(context, qrScannerOptions) { GmsBarcodeScanning.getClient(context, qrScannerOptions) }
DisposableEffect(qrScanner) {
onDispose { qrScanner.close() }
}
```
How can I resolve this? If you propose a fix, please make it concise.Last reviewed commit: f04bcd5 |
Contributor
Author
|
@codex review |
f04bcd5 to
a738edb
Compare
Contributor
Author
Jerry-Xin
pushed a commit
to Jerry-Xin/openclaw
that referenced
this pull request
Mar 13, 2026
mrosmarin
added a commit
to mrosmarin/openclaw
that referenced
this pull request
Mar 13, 2026
* main: (168 commits) fix: stabilize macos daemon onboarding fix(ui): keep shared auth on insecure control-ui connects (openclaw#45088) docs(plugins): clarify workspace shadowing fix(node-host): harden perl approval binding fix(node-host): harden pnpm approval binding fix(discovery): add missing domain to wideArea Zod config schema (openclaw#35615) chore(gitignore): add docker-compose override (openclaw#42879) feat(ios): add onboarding welcome pager (openclaw#45054) fix(signal): add groups config to Signal channel schema (openclaw#27199) fix: restore web fetch firecrawl config in runtime zod schema (openclaw#42583) fix: polish Android QR scanner onboarding (openclaw#45021) fix(android): use Google Code Scanner for onboarding QR fix(config): add missing params field to agents.list[] validation schema (openclaw#41171) docs(contributing): update Android app ownership fix(agents): rephrase session reset prompt to avoid Azure content filter (openclaw#43403) test(config): cover requiresOpenAiAnthropicToolPayload in compat schema fixture fix(agents): respect explicit user compat overrides for non-native openai-completions (openclaw#44432) Android: fix HttpURLConnection leak in TalkModeVoiceResolver (openclaw#43780) Docker: add OPENCLAW_TZ timezone support (openclaw#34119) fix(agents): avoid injecting memory file twice on case-insensitive mounts (openclaw#26054) ...
z-hao-wang
pushed a commit
to z-hao-wang/openclaw
that referenced
this pull request
Mar 13, 2026
hougangdev
pushed a commit
to hougangdev/clawdbot
that referenced
this pull request
Mar 14, 2026
ecochran76
pushed a commit
to ecochran76/openclaw
that referenced
this pull request
Mar 14, 2026
5 tasks
Interstellar-code
pushed a commit
to Interstellar-code/operator1
that referenced
this pull request
Mar 16, 2026
(cherry picked from commit 45721d5)
sbezludny
pushed a commit
to sbezludny/openclaw
that referenced
this pull request
Mar 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Testing