Skip to content

Conversation

@Jignesh-dimagi
Copy link
Contributor

@Jignesh-dimagi Jignesh-dimagi commented Jul 18, 2025

Technical Summary

https://dimagi.atlassian.net/browse/QA-7932

Problem statement:
When app validation was getting succeeded, code was removing the top fragment by calling popBackStack so fragment below in stack i.e. job list fragment was getting activated and start calling API, which was causing crash when trying to access the UI after API success as whole activity was finished before that only.

Solution:
Directly finish the activity from the current fragment only, without pop backing the fragment in stack.

QA Plan

App shouldn't crash after downloading learn/delivery app

Labels and Review

  • Do we need to enhance the manual QA test coverage ? If yes, the "QA Note" label is set correctly
  • Does the PR introduce any major changes worth communicating ? If yes, the "Release Note" label is set and a "Release Note" is specified in PR description.
  • Risk label is set correctly
  • The set of people pinged as reviewers is appropriate for the level of risk of the change

@pm-dimagi pm-dimagi merged commit 0978000 into Beta_2.58_474459 Jul 18, 2025
1 check passed
@shubham1g5
Copy link
Contributor

@Jignesh-dimagi it would be good to add more details in Technical Description section of the PR template on the root cause of the issue as well.

@Jignesh-dimagi
Copy link
Contributor Author

@Jignesh-dimagi it would be good to add more details in Technical Description section of the PR template on the root cause of the issue as well.

@shubham1g5 When app validation was getting succeeded, code was removing the top fragment by calling popBackStack so fragment below in stack i.e. job list fragment was getting activated and start calling API, which was causing crash when trying to access the UI after API success as whole activity was finished before that only.

Solution: Directly finish the activity from the current fragment only, without pop backing the fragment in stack.

@shubham1g5
Copy link
Contributor

Thanks! That makes sense to me, but more generally we should be providing this info in Technical Description of PR descriptions itself to help anyone looking at the PR to get enough context on why the particular change was made.

@Jignesh-dimagi
Copy link
Contributor Author

Thanks! That makes sense to me, but more generally we should be providing this info in Technical Description of PR descriptions itself to help anyone looking at the PR to get enough context on why the particular change was made.

Added in description also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-integration-tests Skip android tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants