1
0

build: increase min api up to 26

This commit is contained in:
2025-05-23 11:54:42 +03:00
parent 515f950bde
commit 831b6bf491
2 changed files with 8 additions and 10 deletions
@@ -70,15 +70,13 @@ class LocationForegroundService : Service() {
private fun createNotificationChannel() {
Log.d("Service", "createNotificationChannel")
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
val channel = NotificationChannel(
"location_channel",
"Отправка Местоположения",
NotificationManager.IMPORTANCE_HIGH
)
val manager = getSystemService(NOTIFICATION_SERVICE) as NotificationManager
manager.createNotificationChannel(channel)
}
val channel = NotificationChannel(
"location_channel",
"Отправка Местоположения",
NotificationManager.IMPORTANCE_HIGH
)
val manager = getSystemService(NOTIFICATION_SERVICE) as NotificationManager
manager.createNotificationChannel(channel)
}
private fun createNotification(): Notification {