mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Revert NotificationService to keep notification in API23
This commit is contained in:
@@ -24,7 +24,9 @@ abstract class NotificationService : Service() {
|
|||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
|
override fun onCreate() {
|
||||||
|
super.onCreate()
|
||||||
|
|
||||||
notificationManager = NotificationManagerCompat.from(this)
|
notificationManager = NotificationManagerCompat.from(this)
|
||||||
|
|
||||||
// Create notification channel for Oreo+
|
// Create notification channel for Oreo+
|
||||||
@@ -46,8 +48,6 @@ abstract class NotificationService : Service() {
|
|||||||
val theme = theme
|
val theme = theme
|
||||||
theme.resolveAttribute(R.attr.colorPrimary, typedValue, true)
|
theme.resolveAttribute(R.attr.colorPrimary, typedValue, true)
|
||||||
colorNotificationAccent = typedValue.data
|
colorNotificationAccent = typedValue.data
|
||||||
|
|
||||||
return super.onStartCommand(intent, flags, startId)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected fun buildNewNotification(): NotificationCompat.Builder {
|
protected fun buildNewNotification(): NotificationCompat.Builder {
|
||||||
|
|||||||
Reference in New Issue
Block a user