Skip to content

Commit

Permalink
fix crash when sending btc (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
m2049r authored Sep 25, 2020
1 parent c6a1b50 commit 85d84d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ void send() {
((TxDataBtc) sendListener.getTxData()).setXmrtoUuid(xmrtoStatus.getUuid());
// TODO make method in TxDataBtc to set both of the above in one go
sendListener.commitTransaction();
pbProgressSend.setVisibility(View.VISIBLE);
getActivity().runOnUiThread(() -> pbProgressSend.setVisibility(View.VISIBLE));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,7 @@ public void transactionCreated(String txTag, PendingTransaction pendingTransacti

void send() {
sendListener.commitTransaction();
getActivity().runOnUiThread(new Runnable() {
@Override
public void run() {
pbProgressSend.setVisibility(View.VISIBLE);
}
});
getActivity().runOnUiThread(() -> pbProgressSend.setVisibility(View.VISIBLE));
}

@Override
Expand Down

0 comments on commit 85d84d0

Please sign in to comment.