Skip to content

Commit cd800c4

Browse files
committed
Fix for pre-Oreo
1 parent e2506d7 commit cd800c4

File tree

1 file changed

+1
-1
lines changed
  • app/src/main/kotlin/com/ztc1997/fingerprint2sleep/service

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/ztc1997/fingerprint2sleep/service/FPQAService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ class FPQAService : Service() {
334334
fun startForegroundIfSet() {
335335
if (isRunning && defaultDPreference.getPrefBoolean(SettingsActivity.PREF_FOREGROUND_SERVICE, false)) {
336336

337-
createNotificationChannel()
337+
configuration(fromSdk = Build.VERSION_CODES.O) { createNotificationChannel() }
338338

339339
val notification = if (isError)
340340
generateNotification(getString(R.string.notification_content_text_retry) + errString, true)

0 commit comments

Comments
 (0)