Android 14 でもForegroundInfoにforegroundServiceTypeを指定しない

This commit is contained in:
tateisu 2023-07-06 14:19:40 +09:00
parent f05e3ba4c4
commit 925373df11
1 changed files with 2 additions and 1 deletions

View File

@ -213,7 +213,8 @@ enum class NotificationChannels(
setWhen(System.currentTimeMillis())
setOngoing(true)
}
return if (Build.VERSION.SDK_INT >= 34) {
val useForegroundServiceType = false
return if (useForegroundServiceType && Build.VERSION.SDK_INT >= 34) {
ForegroundInfo(
nc.notificationId,
builder.build(),