FIX:WGR位置服务隐私开机向导设置用户隐私的返回结果应符合预期

Signed-off-by: z30025928 <734222381@qq.com>
This commit is contained in:
z30025928
2022-08-18 09:22:56 +08:00
parent 54137bb8bc
commit be016dbd05
11 changed files with 16 additions and 25 deletions
+2 -2
View File
@@ -251,14 +251,14 @@ bool LocatorProxy::SetLocationPrivacyConfirmStatus(const int type, bool isConfir
MessageParcel reply;
if (!data.WriteInterfaceToken(GetDescriptor())) {
LBSLOGE(LOCATOR_STANDARD, "SetLocationPrivacyConfirmStatus, WriteInterfaceToken failed.");
return false;
return REPLY_CODE_EXCEPTION;
}
data.WriteInt32(type);
data.WriteBool(isConfirmed);
SendMsgWithDataReply(SET_PRIVACY_COMFIRM_STATUS, data, reply);
int error = reply.ReadInt32();
LBSLOGD(LOCATOR_STANDARD, "Proxy::SetLocationPrivacyConfirmStatus Transact ErrCodes = %{public}d", error);
return error == REPLY_CODE_NO_EXCEPTION ? true : false;
return error;
}
int LocatorProxy::RegisterCachedLocationCallback(std::unique_ptr<CachedGnssLocationsRequest>& request,