First refactoring pass

This commit is contained in:
J-Jamet
2021-07-30 18:11:15 +02:00
parent d4cd5b73bd
commit 840a2253e2
62 changed files with 2000 additions and 1329 deletions

View File

@@ -49,8 +49,6 @@ class AttachmentFileNotificationService: LockNotificationService() {
private val mainScope = CoroutineScope(Dispatchers.Main)
private var mDatabase: Database? = Database.getInstance()
override fun retrieveChannelId(): String {
return CHANNEL_ATTACHMENT_ID
}
@@ -289,7 +287,8 @@ class AttachmentFileNotificationService: LockNotificationService() {
// Add action to the list on start
attachmentNotificationList.add(attachmentNotification)
mDatabase?.let { database ->
// TODO Database
Database.getInstance()?.let { database ->
mainScope.launch {
AttachmentFileAction(attachmentNotification,
database,