Small improvement

This commit is contained in:
Benoit Marty 2020-10-02 23:29:48 +02:00
parent c0842d4da7
commit 8170f523e0
3 changed files with 3 additions and 3 deletions

View file

@ -25,7 +25,7 @@ class RoomListNameFilter @Inject constructor() : Predicate<RoomSummary> {
var filter: String = ""
override fun test(roomSummary: RoomSummary): Boolean {
if (filter.isBlank()) {
if (filter.isEmpty()) {
// No filter
return true
}

View file

@ -203,7 +203,7 @@ class RoomMemberListViewModel @AssistedInject constructor(@Assisted initialState
}
}
private fun handleFilterMemberList(action: RoomMemberListAction.FilterMemberList) = withState {
private fun handleFilterMemberList(action: RoomMemberListAction.FilterMemberList) {
setState {
copy(
filter = action.searchTerm

View file

@ -25,7 +25,7 @@ class RoomMemberSummaryFilter @Inject constructor() : Predicate<RoomMemberSummar
var filter: String = ""
override fun test(roomMemberSummary: RoomMemberSummary): Boolean {
if (filter.isBlank()) {
if (filter.isEmpty()) {
// No filter
return true
}