MOB-4993: Make visitor code dialog non-dismissible#1471
MOB-4993: Make visitor code dialog non-dismissible#1471gugalo wants to merge 5 commits intodevelopmentfrom
Conversation
Configuration simplification: - Remove Atlassian MCP (delegated to global config) - Replace GitHub MCP with direct gh CLI usage - Remove iOS Simulator MCP (not needed for Android SDK) - Add gh search permission for code searching - Add all mobile-mcp tool permissions for Android emulator control Documentation improvements: - Remove hardcoded dependency versions from CLAUDE.md - Add references to gradle/libs.versions.toml as single source of truth - Update GitHub integration docs to reflect direct CLI usage - Clarify Atlassian MCP uses global configuration Files changed: 3 files, 26 insertions(+), 105 deletions(-) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Removed unused MCP servers from configuration. chore/claude-code-setup
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
There was a problem hiding this comment.
Pull request overview
This PR makes the visitor code dialog non-dismissible by disabling cancelable behavior, aligning Android with iOS implementation to prevent accidental dismissals during call visualizer engagement.
Changes:
- Changed
setCancelable(true)tosetCancelable(false)in the visitor code dialog configuration
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| .setBackgroundInsetEnd(0) | ||
| .setCancelable(true) | ||
| .setCancelable(false) | ||
| .setOnCancelListener { Dependencies.controllerFactory.callVisualizerController.dismissVisitorCodeDialog() } |
There was a problem hiding this comment.
The setOnCancelListener on line 386 will never be invoked since setCancelable(false) prevents the dialog from being canceled. Consider removing this listener or documenting why it's retained.
| .setOnCancelListener { Dependencies.controllerFactory.callVisualizerController.dismissVisitorCodeDialog() } |
There was a problem hiding this comment.
@gugalo this proposed change seems reasonable. Can you please make the change on Monday?
Update the visitor code dialog to prevent dismissal by tapping outside or pressing the back button. The dialog can now only be dismissed via the X button in the UI, matching the iOS implementation. Changes: - Set setCancelable(false) in showVisitorCodeDialog() - Aligns Android behavior with iOS for consistent UX - Prevents accidental dismissal during call visualizer engagement Ticket: MOB-4993
6b5776e to
e5d81fb
Compare
ac26cd6 to
d092a22
Compare
Summary
Make the visitor code dialog non-dismissible by tapping outside or pressing the back button, matching the iOS implementation. The dialog can now only be dismissed via the X button in the UI.
Changes
setCancelable(true)tosetCancelable(false)inshowVisitorCodeDialog()functionwidgetssdk/src/main/java/com/glia/widgets/view/Dialogs.kt(line 385)Why This Change?
Technical Details
MaterialAlertDialogBuilder.setCancelable(false)Related