fix crash if back before new address is generated

This commit is contained in:
m2049r 2020-10-20 23:40:55 +02:00
parent d21fd41c44
commit 067a23e6a5
No known key found for this signature in database
GPG Key ID: 4386E69AF260078D
1 changed files with 2 additions and 0 deletions

View File

@ -610,6 +610,8 @@ public class ReceiveFragment extends Fragment {
super.onPostExecute(result);
if (dialogOpened)
progressCallback.dismissProgressDialog();
if (!isAdded()) // never mind then
return;
tvAddress.setText(newSubaddress);
tvAddressLabel.setText(getString(R.string.generate_address_label_sub,
wallet.getNumSubaddresses() - 1));