Drop location in tracker service (temp) 5'

This commit is contained in:
max-klaus 2021-01-13 14:20:59 +03:00
parent f1dd47c0e2
commit 6800dfb2d8

View file

@ -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) {}