From 6800dfb2d80967414dedca7b9a3cf54fb25756f7 Mon Sep 17 00:00:00 2001 From: max-klaus Date: Wed, 13 Jan 2021 14:20:59 +0300 Subject: [PATCH] Drop location in tracker service (temp) 5' --- .../src/net/osmand/telegram/TelegramLocationProvider.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OsmAnd-telegram/src/net/osmand/telegram/TelegramLocationProvider.kt b/OsmAnd-telegram/src/net/osmand/telegram/TelegramLocationProvider.kt index dec07b1d43..55c1911caf 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/TelegramLocationProvider.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/TelegramLocationProvider.kt @@ -219,6 +219,7 @@ class TelegramLocationProvider(private val app: TelegramApplication) : SensorEve @Synchronized fun registerOrUnregisterCompassListener(register: Boolean) { + /* if (sensorRegistered && !register) { Log.d(PlatformUtil.TAG, "Disable sensor") //$NON-NLS-1$ (app.getSystemService(Context.SENSOR_SERVICE) as SensorManager).unregisterListener(this) @@ -259,6 +260,7 @@ class TelegramLocationProvider(private val app: TelegramApplication) : SensorEve } sensorRegistered = true } + */ } override fun onAccuracyChanged(sensor: Sensor, accuracy: Int) {}