1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 12:56:49 +01:00

[Huawei] Ask pincode only on first connection

This commit is contained in:
Damien 'Psolyca' Gaignon 2024-04-07 20:56:36 +02:00 committed by José Rebelo
parent 52e61e36fe
commit 83a010f42e

View File

@ -414,7 +414,7 @@ public class HuaweiSupportProvider {
try {
GetHiChainRequest hiChainReq = new GetHiChainRequest(this, firstConnection);
hiChainReq.setFinalizeReq(configureReq);
if (paramsProvider.getPinCode() == null) {
if (firstConnection) {
GetPincodeRequest pincodeReq = new GetPincodeRequest(this);
pincodeReq.nextRequest(hiChainReq);
pincodeReq.doPerform();