1
mirror of https://github.com/m2049r/xmrwallet synced 2025-09-15 01:10:50 +02:00

Compare commits

..

2 Commits

Author SHA1 Message Date
m2049r
54215138d3 keep barcode data if unchanged 2025-06-15 22:43:46 +02:00
m2049r
1f5ad86b07 update dependencies & gradle (#1002) 2025-06-15 22:42:57 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -908,7 +908,6 @@ public class WalletActivity extends BaseActivity implements WalletFragment.Liste
BarcodeData bcData = BarcodeData.fromString(qrCode);
if (bcData != null) {
popFragmentStack(null);
Timber.d("AAA");
onUriScanned(bcData);
return true;
} else {

View File

@@ -160,11 +160,12 @@ public class SendAddressWizardFragment extends SendWizardFragment {
public void afterTextChanged(Editable editable) {
Timber.d("AFTER: %s", editable.toString());
BarcodeData bc = sendListener.getBarcodeData();
if ((bc != null) && !bc.getAddress().equals(etAddress.getEditText().getText().toString()))
sendListener.setBarcodeData(null); // it's used up now
if (bc == null) {
final String address = etAddress.getEditText().getText().toString();
bc = BarcodeData.fromString(address);
}
sendListener.setBarcodeData(null); // it's used up now
possibleCryptos.clear();
selectedCrypto = null;
if ((bc != null) && (bc.filter(ShiftService.getPossibleAssets()))) {