Remove read of uncrypted Qrcode

This commit is contained in:
Erwan Croze 2019-01-15 11:49:53 +01:00
parent ba130ae5e9
commit 2bce677637

View file

@ -322,17 +322,11 @@ public class RemoteProvisioningLoginActivity extends Activity implements OnClick
if (id == R.id.valider) {
displayRemoteProvisioningInProgressDialog();
ok.setEnabled(false);
if (qrcodeString != null
&& (qrcodeString.startsWith("http://")
|| qrcodeString.startsWith("https://"))) {
storeAccount(qrcodeString);
if (decryptQrcode()) {
storeAccount(remoteUrl);
} else {
if (decryptQrcode()) {
storeAccount(remoteUrl);
} else {
ok.setEnabled(true);
if (progress != null) progress.cancel();
}
ok.setEnabled(true);
if (progress != null) progress.cancel();
}
}
}