From 0cf0870889d65f5d11d0b2c8af7bca9442a7ba19 Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期一, 21 四月 2025 17:14:50 +0800 Subject: [PATCH] Merge branch 'master' of http://47.96.225.205:8888/r/FirstApp2 --- app/src/main/java/com/example/firstapp/database/repository/KeywordRepository.kt | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/app/src/main/java/com/example/firstapp/database/repository/KeywordRepository.kt b/app/src/main/java/com/example/firstapp/database/repository/KeywordRepository.kt index 26c45cb..9da32b4 100644 --- a/app/src/main/java/com/example/firstapp/database/repository/KeywordRepository.kt +++ b/app/src/main/java/com/example/firstapp/database/repository/KeywordRepository.kt @@ -1,5 +1,6 @@ package com.example.firstapp.database.repository +import androidx.annotation.WorkerThread import com.example.firstapp.database.dao.KeywordDao import com.example.firstapp.database.entity.KeywordConfig import com.example.firstapp.database.entity.KeywordEntity @@ -39,5 +40,9 @@ keywordDao.insertAll(keywordEntities) } + @WorkerThread + fun deleteAll() = keywordDao.deleteAll() + + } -- Gitblit v1.9.3