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

IPC-261 Previously extracted information visible on InvoicesActivity #437

Merged

Conversation

danicretu
Copy link
Contributor

IPC-261

@danicretu danicretu requested a review from a-szotyori May 20, 2024 13:17
@danicretu danicretu self-assigned this May 20, 2024
Copy link

sonarcloud bot commented May 23, 2024

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Comment on lines +133 to 143
launch {
viewModel.openBankState.collect { paymentState ->
when (paymentState) {
is GiniHealth.PaymentState.Success -> {
viewModel.updateDocument()
}
else -> {}
}
}
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The reason for keeping this in is the following use case:

  1. The users reaches ReviewFragment
  2. The user modifies the amount and / or the recipient
  3. The user taps on To the banking app
  4. From the bank screen the user hits Back until reaching the Invoices screen (without completing the payment)

The InvoiceActivity is still active at this point, so we can just update the one document instead of adding a whole reload to the resumed state of the lifecycle. I am open to changes though 😁

Copy link
Member

@a-szotyori a-szotyori left a comment

Choose a reason for hiding this comment

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

Thank you!

@danicretu danicretu merged commit c9ea621 into main May 24, 2024
7 checks passed
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.

None yet

2 participants