Skip to content

MOB-4993: Make visitor code dialog non-dismissible#1471

Open
gugalo wants to merge 5 commits intodevelopmentfrom
feature/MOB-4993-visitor-code-non-dismissible
Open

MOB-4993: Make visitor code dialog non-dismissible#1471
gugalo wants to merge 5 commits intodevelopmentfrom
feature/MOB-4993-visitor-code-non-dismissible

Conversation

@gugalo
Copy link
Copy Markdown
Collaborator

@gugalo gugalo commented Jan 27, 2026

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

  • Changed setCancelable(true) to setCancelable(false) in showVisitorCodeDialog() function
  • File modified: widgetssdk/src/main/java/com/glia/widgets/view/Dialogs.kt (line 385)

Why This Change?

  • Platform Parity: Aligns Android behavior with iOS for consistent UX
  • Prevents Accidental Dismissal: Users can no longer accidentally dismiss the visitor code dialog during call visualizer engagement
  • Explicit User Action: Requires users to click the X button to dismiss

Technical Details

  • Uses standard Android Material library API: MaterialAlertDialogBuilder.setCancelable(false)
  • Follows existing patterns in codebase (other dialogs already use this approach)
  • Single-line change with low risk
  • No breaking API changes

Related

  • Ticket: MOB-4993
  • iOS counterpart already implements this behavior

BitriseBot and others added 4 commits January 14, 2026 14:51
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
@gugalo gugalo requested a review from a team as a code owner January 27, 2026 12:23
@snyk-io
Copy link
Copy Markdown

snyk-io Bot commented Jan 27, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@gugalo gugalo requested a review from Copilot January 27, 2026 12:25
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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) to setCancelable(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() }
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
.setOnCancelListener { Dependencies.controllerFactory.callVisualizerController.dismissVisitorCodeDialog() }

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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
@gugalo gugalo force-pushed the feature/MOB-4993-visitor-code-non-dismissible branch from 6b5776e to e5d81fb Compare January 27, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants