Fix bech32 (#513)

* fix bech32 recognition

* bump version
This commit is contained in:
m2049r 2019-01-09 20:54:14 +01:00 committed by GitHub
parent 9d1827ff0d
commit beba0f497b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 7 deletions

View File

@ -7,8 +7,8 @@ android {
applicationId "com.m2049r.xmrwallet"
minSdkVersion 21
targetSdkVersion 28
versionCode 162
versionName "1.10.12 'Node-O-matiC'"
versionCode 163
versionName "1.10.13 'Node-O-matiC'"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
externalNativeBuild {

View File

@ -296,11 +296,8 @@ public class SendAddressWizardFragment extends SendWizardFragment {
}
private boolean isBitcoinAddress() {
String address = etAddress.getEditText().getText().toString();
if ((address.length() >= 27) && (address.length() <= 35))
return BitcoinAddressValidator.validate(address);
else
return false;
final String address = etAddress.getEditText().getText().toString();
return BitcoinAddressValidator.validate(address);
}
private boolean checkPaymentId() {