Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
fixed a crash bug and updated android.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
thatsmanmeet committed Nov 30, 2023
1 parent a0fad3b commit db35147
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ jobs:
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Build Debug APK
run: ./gradlew assembleDebug

Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ fun TaskList(
//Filter list for search operation.
val regex = Regex(searchText, RegexOption.IGNORE_CASE)
val searchedList = if(searchText.isEmpty()) list
else list.filter {
regex.containsMatchIn(it.title.toString())
|| regex.containsMatchIn(it.todoDescription.toString())
}
else list.filter {
regex.containsMatchIn(it.title.toString())
|| regex.containsMatchIn(it.todoDescription.toString())
}

val grouped = searchedList.groupBy {
SimpleDateFormat("dd/MM/yyyy", Locale.getDefault()).parse(it.date!!)
Expand Down Expand Up @@ -133,7 +133,7 @@ fun TaskList(
todoViewModel.deleteTodo(currentItem)
}
SnackbarResult.ActionPerformed -> {
dismissState.reset()
dismissState.reset()
}
}
}
Expand Down

0 comments on commit db35147

Please sign in to comment.