From 60740456a745bd145f8cf303c75c8fe51f0f76e3 Mon Sep 17 00:00:00 2001 From: Naveen Date: Sun, 26 Jun 2022 19:28:48 +0530 Subject: [PATCH] Add clarification parenthesis in `getEventOrTaskWithId` logic --- .../com/simplemobiletools/calendar/pro/interfaces/EventsDao.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/interfaces/EventsDao.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/interfaces/EventsDao.kt index 0862f8938..9cbdf73d6 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/interfaces/EventsDao.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/interfaces/EventsDao.kt @@ -21,7 +21,7 @@ interface EventsDao { @Query("SELECT * FROM events WHERE id = :id AND type = $TYPE_TASK") fun getTaskWithId(id: Long): Event? - @Query("SELECT * FROM events WHERE id = :id AND type = $TYPE_EVENT OR type = $TYPE_TASK") + @Query("SELECT * FROM events WHERE id = :id AND (type = $TYPE_EVENT OR type = $TYPE_TASK)") fun getEventOrTaskWithId(id: Long): Event? @Query("SELECT * FROM events WHERE import_id = :importId AND type = $TYPE_EVENT")