mirror of
https://codeberg.org/anoncontributorxmr/mysu.git
synced 2024-11-10 05:03:26 +01:00
Add some comments
This commit is contained in:
parent
ae4a8724e8
commit
8040753119
@ -256,14 +256,18 @@ public class SendFragment extends Fragment {
|
||||
int currentOutputs = getDestCount();
|
||||
UriData uriData = UriData.parse(editable.toString());
|
||||
if(uriData != null) {
|
||||
// we have valid address
|
||||
boolean hasPaymentId = uriData.hasPaymentId();
|
||||
if(currentOutputs > 1 && hasPaymentId) {
|
||||
// multiple outputs when pasting/editing in integrated address. this is not allowed
|
||||
Toast.makeText(getActivity(), getString(R.string.paymentid_paytomany), Toast.LENGTH_SHORT).show();
|
||||
addressField.setText(null);
|
||||
} else if(currentOutputs == 1 && hasPaymentId) {
|
||||
// show add output button: we are sending to integrated address
|
||||
mViewModel.setShowAddOutputButton(false);
|
||||
}
|
||||
} else if(currentOutputs == 1 && !isSendAll()){
|
||||
} else if(currentOutputs == 1 && !isSendAll()) {
|
||||
// when send-all is false and this is our only dest and address is invalid, then show add output button
|
||||
mViewModel.setShowAddOutputButton(true);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user