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 12, 2019
1 parent a0b5633 commit 007f4aaea88a5465e0ad1d72c0e2c2d346922ac2
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 007f4aa

Please sign in to comment.