@@ -43,30 +43,30 @@ class K9NotificationStore(private val lockableDatabase: LockableDatabase) : Noti
4343 database.execSQL(
4444 " INSERT INTO notifications(message_id, notification_id, timestamp) " +
4545 " SELECT id, ?, ? FROM messages WHERE folder_id = ? AND uid = ?" ,
46- arrayOf< Any > (notificationId, timestamp, messageReference.folderId, messageReference.uid),
46+ arrayOf(notificationId, timestamp, messageReference.folderId, messageReference.uid),
4747 )
4848 }
4949
5050 private fun setNotificationId (database : SQLiteDatabase , messageReference : MessageReference , notificationId : Int ) {
5151 database.execSQL(
5252 " UPDATE notifications SET notification_id = ? WHERE message_id IN " +
5353 " (SELECT id FROM messages WHERE folder_id = ? AND uid = ?)" ,
54- arrayOf< Any > (notificationId, messageReference.folderId, messageReference.uid),
54+ arrayOf(notificationId, messageReference.folderId, messageReference.uid),
5555 )
5656 }
5757
5858 private fun clearNotificationId (database : SQLiteDatabase , messageReference : MessageReference ) {
5959 database.execSQL(
6060 " UPDATE notifications SET notification_id = NULL WHERE message_id IN " +
6161 " (SELECT id FROM messages WHERE folder_id = ? AND uid = ?)" ,
62- arrayOf< Any > (messageReference.folderId, messageReference.uid),
62+ arrayOf(messageReference.folderId, messageReference.uid),
6363 )
6464 }
6565
6666 private fun removeNotification (database : SQLiteDatabase , messageReference : MessageReference ) {
6767 database.execSQL(
6868 " DELETE FROM notifications WHERE message_id IN (SELECT id FROM messages WHERE folder_id = ? AND uid = ?)" ,
69- arrayOf< Any > (messageReference.folderId, messageReference.uid),
69+ arrayOf(messageReference.folderId, messageReference.uid),
7070 )
7171 }
7272}
0 commit comments