Skip to content
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

fix(#338): Refactor OpenSettingsDialogFragment class to have a empty constructor #366

Merged
merged 2 commits into from
Jul 1, 2024

Conversation

sugat009
Copy link
Member

Fixes: #338

Refactored the OpenSettingsDialogFragment class to have an empty constructor.
According to the Android documentation, every Fragment class should have an empty constructor that does nothing and is not a non-empty constructor. Reference. Not doing this leads to the Android ecosystem being unable to restore the Fragment's state when re-instantiated causing the issue mentioned in the linked issue.

Testing:
For e2e testing, you can start using the app normally and ensure that it does not crash and to test the functionality that the OpenSettingsDialogFragment class provides, you can tap the screen 5 times and then, right-swipe the screen with 2 fingers.

@sugat009 sugat009 added the Type: Bug Fix something that isn't working as intended label Jun 26, 2024
@sugat009 sugat009 self-assigned this Jun 26, 2024
@sugat009 sugat009 linked an issue Jun 26, 2024 that may be closed by this pull request
Copy link
Contributor

@m5r m5r left a comment

Choose a reason for hiding this comment

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

Looks good! One fewer warning in our logs 😄

Copy link
Contributor

@latin-panda latin-panda left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks Sugat!

Copy link

@tatilepizs tatilepizs left a comment

Choose a reason for hiding this comment

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

This looks good, thank you @sugat009. ⭐

@sugat009 sugat009 merged commit a24e5c1 into master Jul 1, 2024
7 checks passed
@sugat009 sugat009 deleted the 338-play-store-reporting-medic-app-crashes branch July 1, 2024 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Fix something that isn't working as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Play Store reporting Medic app crashes
5 participants