-
-
Notifications
You must be signed in to change notification settings - Fork 45
PM-fixing crash on click message icon #3095
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
Conversation
|
@coderabbitai full review please |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: Length of output: 1943 🏁 Script executed: Length of output: 26762 🏁 Script executed: Length of output: 1466 @pm-dimagi I've reviewed PR #3095 which fixes a crash when clicking on the message icon. Here's my assessment: Issue IdentifiedThe crash is occurring because Fix AnalysisThe changes made are:
This is an appropriate fix because it aligns the variable scope with how it's being accessed in the static methods of the class. RecommendationsThe fix looks solid, but I'd suggest:
Overall, this is a clean, minimal fix that directly addresses the crash issue. |
| } | ||
|
|
||
| private static ConnectManager getInstance() { | ||
| public static ConnectManager getInstance() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think if we made this public we will need to also mange the singleton lifecycle better and make sure that concurrent calls to this only creates one instance. As such it's probably better to keep this private for now and in goToMessaging method call getInstance().parentActivity instead of just manager.parentActivity.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Product Description
Fixed the crash when clicking on the message icon
https://dimagi.atlassian.net/browse/QA-7742
cross-request: dimagi/commcare-core#1475
QA-7745
New bug
firebase stacktrace
Technical Summary
Feature Flag
Safety Assurance
Safety story
Automated test coverage
QA Plan
Labels and Review