Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3c664a44 authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

remove logging, simplify code

parent ba1e432c
Loading
Loading
Loading
Loading
+1 −17
Original line number Diff line number Diff line
@@ -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)
                }