mirror of
https://github.com/openharmony/base_location.git
synced 2026-08-25 12:24:02 -04:00
FIX:WGR位置服务隐私开机向导设置用户隐私的返回结果应符合预期
Signed-off-by: z30025928 <734222381@qq.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user