From e15f9604ae3d27db36876c575e6860ba4be9631f Mon Sep 17 00:00:00 2001 From: "Aaron (Qilong)" <173288704@qq.com> Date: Mon, 3 Feb 2020 00:36:14 -0500 Subject: [PATCH] PR comment (#10347) --- src/DynamoCore/Logging/DynamoAnalyticsClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DynamoCore/Logging/DynamoAnalyticsClient.cs b/src/DynamoCore/Logging/DynamoAnalyticsClient.cs index f843709f103..bbc7439816f 100644 --- a/src/DynamoCore/Logging/DynamoAnalyticsClient.cs +++ b/src/DynamoCore/Logging/DynamoAnalyticsClient.cs @@ -182,7 +182,7 @@ public void Start() { //If not ReportingAnalytics, then set the idle time as infinite so idle state is not recorded. Service.StartUp(product, - new UserInfo(Session.UserId), ReportingAnalytics ? TimeSpan.FromMinutes(30) : TimeSpan.MaxValue); + new UserInfo(Session.UserId), preferences.IsAnalyticsReportingApproved ? TimeSpan.FromMinutes(30) : TimeSpan.MaxValue); TrackPreferenceInternal("ReportingAnalytics", "", ReportingAnalytics ? 1 : 0); TrackPreferenceInternal("ReportingUsage", "", ReportingUsage ? 1 : 0); }