Android 14 でもForegroundInfoにforegroundServiceTypeを指定しない
This commit is contained in:
parent
f05e3ba4c4
commit
925373df11
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue