From 6945aaa77bda11db52a8a031392419bb70995ed0 Mon Sep 17 00:00:00 2001 From: max-klaus Date: Tue, 12 Jan 2021 21:16:23 +0300 Subject: [PATCH] Drop location in tracker service (temp) 2' --- OsmAnd-telegram/src/net/osmand/telegram/TelegramSettings.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OsmAnd-telegram/src/net/osmand/telegram/TelegramSettings.kt b/OsmAnd-telegram/src/net/osmand/telegram/TelegramSettings.kt index efdb35edf1..bece18b8f4 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/TelegramSettings.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/TelegramSettings.kt @@ -505,6 +505,8 @@ class TelegramSettings(private val app: TelegramApplication) { val currentTimeMillis = System.currentTimeMillis() val currentTime = currentTimeMillis / 1000 statusChangeTime = currentTimeMillis + val gpsEnabled = false + /* val lm = app.getSystemService(Context.LOCATION_SERVICE) as LocationManager val gpsEnabled = try { if (lm.isProviderEnabled(LocationManager.GPS_PROVIDER)) { @@ -518,6 +520,7 @@ class TelegramSettings(private val app: TelegramApplication) { } catch (ex: Exception) { false } + */ var initializing = false var sendChatsErrors = false