Skip to content

Commit

Permalink
Push beta apk
Browse files Browse the repository at this point in the history
[Fixed search interface with no searching refresh issue]
  • Loading branch information
Z-Siqi committed Sep 20, 2024
1 parent 39b2db1 commit aa44dd2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Binary file modified app/release/app-release.apk
Binary file not shown.
2 changes: 1 addition & 1 deletion app/release/output-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"filters": [],
"attributes": [],
"versionCode": 10,
"versionName": "0.1.0-build_beta02",
"versionName": "0.1.0-build_beta03",
"outputFile": "app-release.apk"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ import java.util.UUID
import java.util.concurrent.TimeUnit

class TaskLayoutViewModel : ViewModel() {
//private val _listState = MutableStateFlow(ListData())
//val listState: MutableStateFlow<ListData> = _listState

private val _navExtendedConnectData = MutableStateFlow(NavExtendedConnectData())
val navExtendedConnector: MutableStateFlow<NavExtendedConnectData> = _navExtendedConnectData
Expand Down Expand Up @@ -128,7 +126,6 @@ class TaskLayoutViewModel : ViewModel() {

/** Reminded task **/
private var isRemindedData by mutableStateOf(listOf<Task>())
// List<Task>
/** 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<Task> {
viewModelScope.launch {
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit aa44dd2

Please sign in to comment.