mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-06 19:33:01 +00:00
Refactor: Pass correct key to history paging queries
This commit is contained in:
@@ -7,7 +7,6 @@ import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.lazy.LazyColumn
|
||||
import androidx.compose.foundation.lazy.items
|
||||
import androidx.compose.foundation.text.input.TextFieldState
|
||||
import androidx.compose.material3.ExperimentalMaterial3Api
|
||||
import androidx.compose.material3.Text
|
||||
@@ -53,9 +52,9 @@ fun ActivityScreen(
|
||||
),
|
||||
) {
|
||||
if (searchQuery.isEmpty()) {
|
||||
database.dao().getAllHistoryPaging()
|
||||
database.dao().getAllHistoryPaging(key)
|
||||
} else {
|
||||
database.dao().searchAllHistoryPaging(searchQuery.lowercase())
|
||||
database.dao().searchAllHistoryPaging(key, searchQuery.lowercase())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user