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 authored and naira-cliqz committed Apr 9, 2019
1 parent ae4b04c commit 4a6a4fdb18ac0f6573f59e96068a5e9bb432c9bc
Showing with 1 addition and 0 deletions.
  1. +1 −0 Cliqz/Services/SettingsPrefs.swift
@@ -243,6 +243,7 @@ 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)
}

// MARK: - Private helper metods

0 comments on commit 4a6a4fd

Please sign in to comment.