Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

[IP-434] Do not send telemetry when user disabled it in settings

  • Loading branch information
mahmoud-adam85 committed Apr 11, 2019
1 parent b6c3f43 commit 65db6322a4a584ab0232a1ff51d22b965bcd8330
Showing with 2 additions and 2 deletions.
  1. +2 −2 Cliqz/Services/SettingsPrefs.swift
@@ -242,9 +242,9 @@ class SettingsPrefs {

func updateSendUsageDataPref(_ newValue: Bool) {
LocalDataStore.set(value: newValue, forKey: SettingsPrefs.SendUsageData)
Engine.sharedInstance.setPref("modules.anolysis.enabled", prefValue: newValue)
Engine.sharedInstance.setPref("telemetry", prefValue: newValue)
LegacyTelemetryHelper.logTelemetrySetting(state: newValue)
Engine.sharedInstance.setPref("modules.anolysis.enabled", prefValue: newValue)
Engine.sharedInstance.setPref("toolkit.telemetry.enabled", prefValue: newValue)
}

// MARK: - Private helper metods

0 comments on commit 65db632

Please sign in to comment.