1
mirror of https://github.com/m2049r/xmrwallet synced 2025-05-18 14:23:45 +02:00

fix crash when sending btc ()

This commit is contained in:
m2049r 2020-09-25 20:08:07 +02:00 committed by GitHub
parent c6a1b503bc
commit 85d84d09ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 7 deletions
app/src/main/java/com/m2049r/xmrwallet/fragment/send

@ -204,7 +204,7 @@ public class SendBtcConfirmWizardFragment extends SendWizardFragment implements
((TxDataBtc) sendListener.getTxData()).setXmrtoUuid(xmrtoStatus.getUuid()); ((TxDataBtc) sendListener.getTxData()).setXmrtoUuid(xmrtoStatus.getUuid());
// TODO make method in TxDataBtc to set both of the above in one go // TODO make method in TxDataBtc to set both of the above in one go
sendListener.commitTransaction(); sendListener.commitTransaction();
pbProgressSend.setVisibility(View.VISIBLE); getActivity().runOnUiThread(() -> pbProgressSend.setVisibility(View.VISIBLE));
} }
@Override @Override

@ -131,12 +131,7 @@ public class SendConfirmWizardFragment extends SendWizardFragment implements Sen
void send() { void send() {
sendListener.commitTransaction(); sendListener.commitTransaction();
getActivity().runOnUiThread(new Runnable() { getActivity().runOnUiThread(() -> pbProgressSend.setVisibility(View.VISIBLE));
@Override
public void run() {
pbProgressSend.setVisibility(View.VISIBLE);
}
});
} }
@Override @Override