Refactor: Pass correct key to history paging queries

This commit is contained in:
greenart7c3
2026-01-02 06:30:03 -03:00
parent 8fd4877b3e
commit ef4f36a9c5
@@ -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())
}
}
}