From 3db1f5bfd22205e367c56e127730a28ad7743a04 Mon Sep 17 00:00:00 2001 From: yovinchen Date: Wed, 27 Nov 2024 08:49:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yovinchen/bookkeeping/viewmodel/SettingsViewModel.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/yovinchen/bookkeeping/viewmodel/SettingsViewModel.kt b/app/src/main/java/com/yovinchen/bookkeeping/viewmodel/SettingsViewModel.kt index 354ac1c..37f3c16 100644 --- a/app/src/main/java/com/yovinchen/bookkeeping/viewmodel/SettingsViewModel.kt +++ b/app/src/main/java/com/yovinchen/bookkeeping/viewmodel/SettingsViewModel.kt @@ -6,9 +6,11 @@ import androidx.lifecycle.viewModelScope import com.yovinchen.bookkeeping.data.BookkeepingDatabase import com.yovinchen.bookkeeping.model.Category import com.yovinchen.bookkeeping.model.TransactionType +import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.flow.* import kotlinx.coroutines.launch +@OptIn(ExperimentalCoroutinesApi::class) class SettingsViewModel(application: Application) : AndroidViewModel(application) { private val database = BookkeepingDatabase.getDatabase(application) private val dao = database.bookkeepingDao()