replacing notification utils usage with the displayer and removing unused method

This commit is contained in:
Adam Brown 2021-10-14 16:58:31 +01:00
parent c16e3e09e6
commit a6e47d8b85
1 changed files with 2 additions and 6 deletions

View File

@ -41,7 +41,7 @@ import javax.inject.Singleton
*/ */
@Singleton @Singleton
class NotificationDrawerManager @Inject constructor(private val context: Context, class NotificationDrawerManager @Inject constructor(private val context: Context,
private val notificationUtils: NotificationUtils, private val notificationDisplayer: NotificationDisplayer,
private val vectorPreferences: VectorPreferences, private val vectorPreferences: VectorPreferences,
private val activeSessionDataSource: ActiveSessionDataSource, private val activeSessionDataSource: ActiveSessionDataSource,
private val notifiableEventProcessor: NotifiableEventProcessor, private val notifiableEventProcessor: NotifiableEventProcessor,
@ -243,7 +243,7 @@ class NotificationDrawerManager @Inject constructor(private val context: Context
val newSettings = vectorPreferences.useCompleteNotificationFormat() val newSettings = vectorPreferences.useCompleteNotificationFormat()
if (newSettings != useCompleteNotificationFormat) { if (newSettings != useCompleteNotificationFormat) {
// Settings has changed, remove all current notifications // Settings has changed, remove all current notifications
notificationUtils.cancelAllNotifications() notificationDisplayer.cancelAllNotifications()
useCompleteNotificationFormat = newSettings useCompleteNotificationFormat = newSettings
} }
@ -318,10 +318,6 @@ class NotificationDrawerManager @Inject constructor(private val context: Context
} }
} }
fun displayDiagnosticNotification() {
notificationUtils.displayDiagnosticNotification()
}
companion object { companion object {
const val SUMMARY_NOTIFICATION_ID = 0 const val SUMMARY_NOTIFICATION_ID = 0
const val ROOM_MESSAGES_NOTIFICATION_ID = 1 const val ROOM_MESSAGES_NOTIFICATION_ID = 1