Skip to content

fix: send coins crash - #1143

Merged
HashEngineering merged 2 commits into
masterfrom
fix-send-coins-crash
Jun 22, 2023
Merged

HashEngineering merged 2 commits into
masterfrom
fix-send-coins-crash

Conversation

@Syn-McJ

@Syn-McJ Syn-McJ commented Jun 21, 2023

Copy link
Copy Markdown
Member

When the system restores SendCoinsFragment after killing the app process, the payment intent ends up being not initialized.

Issue being fixed or feature implemented

  • Re-initialize the payment intent from the saved state.

Related PR's and Dependencies

Screenshots / Videos

How Has This Been Tested?

  • QA (Mobile Team)

Checklist:

  • I have performed a self-review of my own code and added comments where necessary
  • I have added or updated relevant unit/integration/functional/e2e tests

@Syn-McJ
Syn-McJ requested a review from HashEngineering June 21, 2023 11:17
@Syn-McJ Syn-McJ self-assigned this Jun 21, 2023
} else {
enterAmountFragment = childFragmentManager.findFragmentById(
R.id.enter_amount_fragment_placeholder
) as EnterAmountFragment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

If savedInstanceState isn't null we still want to call initPaymentIntent to restore the intent from the saved state, although it is still not necessary to do a EnterAmountFragment transaction - only to restore it into the field value.

@HashEngineering HashEngineering left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

impressive work

@HashEngineering
HashEngineering merged commit 46f772e into master Jun 22, 2023
@Syn-McJ
Syn-McJ deleted the fix-send-coins-crash branch June 28, 2023 11:08
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.

2 participants