Drop location in tracker service (temp) 5'
This commit is contained in:
parent
f1dd47c0e2
commit
6800dfb2d8
1 changed files with 2 additions and 0 deletions
|
@ -219,6 +219,7 @@ class TelegramLocationProvider(private val app: TelegramApplication) : SensorEve
|
||||||
|
|
||||||
@Synchronized
|
@Synchronized
|
||||||
fun registerOrUnregisterCompassListener(register: Boolean) {
|
fun registerOrUnregisterCompassListener(register: Boolean) {
|
||||||
|
/*
|
||||||
if (sensorRegistered && !register) {
|
if (sensorRegistered && !register) {
|
||||||
Log.d(PlatformUtil.TAG, "Disable sensor") //$NON-NLS-1$
|
Log.d(PlatformUtil.TAG, "Disable sensor") //$NON-NLS-1$
|
||||||
(app.getSystemService(Context.SENSOR_SERVICE) as SensorManager).unregisterListener(this)
|
(app.getSystemService(Context.SENSOR_SERVICE) as SensorManager).unregisterListener(this)
|
||||||
|
@ -259,6 +260,7 @@ class TelegramLocationProvider(private val app: TelegramApplication) : SensorEve
|
||||||
}
|
}
|
||||||
sensorRegistered = true
|
sensorRegistered = true
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onAccuracyChanged(sensor: Sensor, accuracy: Int) {}
|
override fun onAccuracyChanged(sensor: Sensor, accuracy: Int) {}
|
||||||
|
|
Loading…
Reference in a new issue