build: increase min api up to 26
This commit is contained in:
parent
515f950bde
commit
831b6bf491
@ -15,7 +15,7 @@ android {
|
||||
|
||||
defaultConfig {
|
||||
applicationId = "ru.risdeveau.geotracker"
|
||||
minSdk = 24
|
||||
minSdk = 26
|
||||
targetSdk = 35
|
||||
versionCode = 2
|
||||
versionName = "1.1"
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user