-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change progress dialog cancel button visibility state #2929
Change progress dialog cancel button visibility state #2929
Conversation
📝 WalkthroughWalkthroughThe pull request introduces a modification to the The modification is a straightforward UI adjustment that impacts the visual presentation and interaction possibilities of the progress dialog by removing the cancel button entirely, rather than just hiding it while maintaining its layout space. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (2)app/res/layout/progress_dialog_cancel_button.xml (2)
The change from
Since this is a high-risk change affecting the installation process, please ensure:
Let's verify the usage of this layout in the installation flow: ✅ Verification successfulBased on the search results, I can see that this layout file
Let me search for more specific usage of these progress dialogs in the installation flow. Let me search for more specific usage of CustomProgressDialog in installation-related code to understand how the cancel button visibility is managed. Based on the search results, I can now provide a definitive response about the cancel button visibility change: Verified: Cancel button visibility is correctly set to GONE during installation The code review shows that:
This confirms that:
🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Search for references to this layout file and its usage in installation-related code
rg -A 5 "progress_dialog_cancel_button"
# Look for any dynamic visibility changes to this button
ast-grep --pattern 'setVisibility($_)'
# Check for installation-related classes/activities that might use this dialog
rg -A 5 -i 'install|setup|progress.*dialog'
Length of output: 73282 Script: #!/bin/bash
# Search for references to these progress dialog layouts in installation-related code
rg -A 5 "progress_dialog_(determinate|indeterminate)" app/src/
# Look for any code that manages cancel button visibility during installation
ast-grep --pattern 'setVisibility($vis)' app/src/org/commcare/activities/
Length of output: 1188 Script: #!/bin/bash
# Search for installation-related code using CustomProgressDialog
rg -A 10 "CustomProgressDialog" app/src/org/commcare/activities/CommCareSetupActivity.java app/src/org/commcare/activities/InstallArchiveActivity.java
# Look for any code that manages dialog cancellation during installation
rg -A 5 "setCancelable|setOnCancelListener" app/src/org/commcare/activities/
Length of output: 10487 Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary
This PR reverts a change that appears to have been made by mistake during the UI revamping work, which caused a
Stop
button to be visible during app installations.Ticket: https://dimagi.atlassian.net/browse/QA-7351
PR Checklist