Loading lib/src/main/java/foundation/e/lib/telemetry/Telemetry.kt +1 −17 Original line number Diff line number Diff line Loading @@ -58,23 +58,7 @@ object Telemetry { val telemetryOptionObserver = object : ContentObserver(handler) { override fun onChange(selfChange: Boolean) { super.onChange(selfChange) println("Testingggg: run") if (isTelemetryEnabled && !checkTelemetryDeveloperOption()) { println("Testingggg: disable") /* Indicates that telemetry reporting is going on but * telemetry from developer options is turned off. * In this case, disable telemetry. */ Sentry.endSession() init(identifier, application, enableOsTag) } else if (!isTelemetryEnabled && checkTelemetryDeveloperOption()) { println("Testingggg: enable") /* * Just the opposite of the above case. * Re-initialise to auto enable. */ if (isTelemetryEnabled != checkTelemetryDeveloperOption()) { Sentry.endSession() init(identifier, application, enableOsTag) } Loading Loading
lib/src/main/java/foundation/e/lib/telemetry/Telemetry.kt +1 −17 Original line number Diff line number Diff line Loading @@ -58,23 +58,7 @@ object Telemetry { val telemetryOptionObserver = object : ContentObserver(handler) { override fun onChange(selfChange: Boolean) { super.onChange(selfChange) println("Testingggg: run") if (isTelemetryEnabled && !checkTelemetryDeveloperOption()) { println("Testingggg: disable") /* Indicates that telemetry reporting is going on but * telemetry from developer options is turned off. * In this case, disable telemetry. */ Sentry.endSession() init(identifier, application, enableOsTag) } else if (!isTelemetryEnabled && checkTelemetryDeveloperOption()) { println("Testingggg: enable") /* * Just the opposite of the above case. * Re-initialise to auto enable. */ if (isTelemetryEnabled != checkTelemetryDeveloperOption()) { Sentry.endSession() init(identifier, application, enableOsTag) } Loading