fix crash if back before new address is generated
This commit is contained in:
parent
d21fd41c44
commit
067a23e6a5
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue