diff --git a/app/release/app-release.apk b/app/release/app-release.apk index 6c1589c..0ec877a 100644 Binary files a/app/release/app-release.apk and b/app/release/app-release.apk differ diff --git a/app/release/output-metadata.json b/app/release/output-metadata.json index a4ee8d0..3620aec 100644 --- a/app/release/output-metadata.json +++ b/app/release/output-metadata.json @@ -12,7 +12,7 @@ "filters": [], "attributes": [], "versionCode": 10, - "versionName": "0.1.0-build_beta02", + "versionName": "0.1.0-build_beta03", "outputFile": "app-release.apk" } ], diff --git a/app/src/main/java/com/sqz/checklist/ui/main/task/TaskLayoutViewModel.kt b/app/src/main/java/com/sqz/checklist/ui/main/task/TaskLayoutViewModel.kt index 27e138e..3e49d73 100644 --- a/app/src/main/java/com/sqz/checklist/ui/main/task/TaskLayoutViewModel.kt +++ b/app/src/main/java/com/sqz/checklist/ui/main/task/TaskLayoutViewModel.kt @@ -27,8 +27,6 @@ import java.util.UUID import java.util.concurrent.TimeUnit class TaskLayoutViewModel : ViewModel() { - //private val _listState = MutableStateFlow(ListData()) - //val listState: MutableStateFlow = _listState private val _navExtendedConnectData = MutableStateFlow(NavExtendedConnectData()) val navExtendedConnector: MutableStateFlow = _navExtendedConnectData @@ -128,7 +126,6 @@ class TaskLayoutViewModel : ViewModel() { /** Reminded task **/ private var isRemindedData by mutableStateOf(listOf()) - // List /** Remind task. Load list if load = true. If load = false, allow autoDel and id (del reminder info) to work **/ fun remindedState(id: Int = -1, autoDel: Boolean = false, load: Boolean = false): List { viewModelScope.launch { @@ -262,7 +259,7 @@ class TaskLayoutViewModel : ViewModel() { if (searchText.isNotEmpty()) viewModelScope.launch { inSearchData = MainActivity.taskDatabase.taskDao().searchedList(searchText) } - if (initWithAll) viewModelScope.launch { + if (initWithAll || searchingText.isEmpty()) viewModelScope.launch { searchingText = "" inSearchData = MainActivity.taskDatabase.taskDao().getAll(withoutHistory = 1) }