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 Crash Edit Categories Fragment #5510

Conversation

shashankiitbhu
Copy link
Contributor

@shashankiitbhu shashankiitbhu commented Feb 4, 2024

Description (required)

Fixes #5505

What changes did you make and why?
Removed an unnecessary check that was stopping the init() from getting called which was resulting in a crash.

Tests performed (required)

Tested 4.2.1-debug-main on Xiaomi 11 Lite NE with API level 33

@shashankiitbhu
Copy link
Contributor Author

@nicolas-raoul @psh @RitikaPahwa4444 Please Review and Merge this PR, because it solves an Important Crash #5505 , thanks :)

Copy link
Member

@nicolas-raoul nicolas-raoul left a comment

Choose a reason for hiding this comment

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

I confirm this fixes the crash when editing categories of my contributions.
I am now waiting for resolution of #5547 to test for possible side effects.

@shashankiitbhu
Copy link
Contributor Author

@nicolas-raoul I Added some checks and appropriate tests

@shashankiitbhu
Copy link
Contributor Author

@nicolas-raoul If these tests and checks are fine , can you please review and merge this, thanks

Copy link
Member

@nicolas-raoul nicolas-raoul left a comment

Choose a reason for hiding this comment

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

Tested in all situations, no crash now, category edition works.

@nicolas-raoul nicolas-raoul merged commit f5a5159 into commons-app:main Feb 26, 2024
1 check passed
ShashwatKedia pushed a commit to ShashwatKedia/apps-android-commons that referenced this pull request Mar 1, 2024
* fix crash

* Tests Added

* Tests and Null Checks Added
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Edit Category Crashes when Previous Button is Clicked
2 participants