diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/notifications/NotificationStore.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/notifications/NotificationStore.kt index 47169145f5..43d4327450 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/notifications/NotificationStore.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/notifications/NotificationStore.kt @@ -143,7 +143,7 @@ class NotificationStore @Inject constructor( @Synchronized fun updateNotifications(notificationsView: RecyclerView) { removeExpired() - unSnooze() +// unSnooze() if (store.size > 0) { val adapter = NotificationRecyclerViewAdapter(cloneStore()) notificationsView.adapter = adapter @@ -159,7 +159,7 @@ class NotificationStore @Inject constructor( clone.addAll(store) return clone } - +/* private fun unSnooze() { if (sp.getBoolean(R.string.key_nsalarm_staledata, false)) { val notification = Notification(Notification.NSALARM, resourceHelper.gs(R.string.nsalarm_staledata), Notification.URGENT) @@ -168,7 +168,7 @@ class NotificationStore @Inject constructor( aapsLogger.debug(LTag.NOTIFICATION, "Snoozed to current time and added back notification!") } } - +*/ inner class NotificationRecyclerViewAdapter internal constructor(private val notificationsList: List) : RecyclerView.Adapter() { override fun onCreateViewHolder(viewGroup: ViewGroup, viewType: Int): NotificationsViewHolder { val v = LayoutInflater.from(viewGroup.context).inflate(R.layout.overview_notification_item, viewGroup, false)