From 0a730b84c41f44129bf5ecc112450d2edf4312c9 Mon Sep 17 00:00:00 2001 From: tj <1378534974@qq.com> Date: 星期二, 15 四月 2025 17:44:56 +0800 Subject: [PATCH] 1.4 返回按钮 --- app/src/main/java/com/example/firstapp/database/repository/ReminderRepository.kt | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/example/firstapp/database/repository/ReminderRepository.kt b/app/src/main/java/com/example/firstapp/database/repository/ReminderRepository.kt index 861e344..e6d8747 100644 --- a/app/src/main/java/com/example/firstapp/database/repository/ReminderRepository.kt +++ b/app/src/main/java/com/example/firstapp/database/repository/ReminderRepository.kt @@ -8,7 +8,7 @@ class ReminderRepository(context: Context) { - private val reminderDao: ReminderDao = AppDatabase.getInstance(context).reminderDao() + private val reminderDao: ReminderDao = AppDatabase.getInstance(context).reminderDao() fun getAllReminders(): Flow<List<Reminder>> = reminderDao.getAllReminders() suspend fun insertReminder(reminder: Reminder) { @@ -30,4 +30,4 @@ suspend fun deleteAllReminders() { reminderDao.deleteAllReminders() } -} \ No newline at end of file +} \ No newline at end of file -- Gitblit v1.9.3