Drop location in tracker service (temp) 6'

This commit is contained in:
max-klaus 2021-01-13 20:46:22 +03:00
parent 37972b1be5
commit e7b73a949f
2 changed files with 2 additions and 11 deletions

View file

@ -9,7 +9,6 @@
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<application
android:name="net.osmand.telegram.TelegramApplication"
@ -48,16 +47,6 @@
</activity>
<service
android:name=".TelegramService"
android:label="@string/process_service"
android:foregroundServiceType="location"
android:stopWithTask="false">
<intent-filter>
<action android:name="net.osmand.telegram.TelegramService" />
</intent-filter>
</service>
<receiver
android:name=".InitAppBroadcastReceiver"
android:enabled="true"

View file

@ -148,6 +148,7 @@ class TelegramApplication : Application() {
}
private fun startTelegramService(intent: Int) {
/*
var i = intent
val serviceIntent = Intent(this, TelegramService::class.java)
val telegramService = telegramService
@ -158,6 +159,7 @@ class TelegramApplication : Application() {
serviceIntent.putExtra(TelegramService.USAGE_INTENT, i)
serviceIntent.putExtra(TelegramService.SEND_LOCATION_INTERVAL, settings.sendMyLocInterval)
ContextCompat.startForegroundService(this, serviceIntent)
*/
}
fun startMyLocationService() {