按审查报告修复 M1-M4 与 L1-L8;版本 0.7(versionCode 23)
This commit is contained in:
@@ -104,7 +104,7 @@ class TimerService : Service() {
|
||||
private fun startForegroundCompat() {
|
||||
val notification = Notif.buildOngoing(this)
|
||||
runCatching {
|
||||
// 两参版本会读清单里声明的前台服务类型(dataSync)。
|
||||
// 两参版本会读清单里声明的前台服务类型(specialUse)。
|
||||
// 不用三参 + SPECIAL_USE:该类型 Android 14 才引入,
|
||||
// 在 P30 的 Android 12 上传进去会直接抛 IllegalArgumentException。
|
||||
startForeground(Notif.ID_ONGOING, notification)
|
||||
|
||||
Reference in New Issue
Block a user