Skip to content

Commit

Permalink
Androapp 5036 (#19)
Browse files Browse the repository at this point in the history
Implement search
  • Loading branch information
mvmmacamo2 authored and andresmr committed Feb 8, 2023
1 parent a1ca9f3 commit edf5716
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/src/main/assets/paperwork.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"buildTime":"2022-11-04 14:26","gitSha":"23b3563f0"}
{"buildTime":"2022-11-07 08:44","gitSha":"8452500d0"}
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ import org.dhis2.android.rtsm.data.TransactionType
import org.dhis2.android.rtsm.ui.home.HomeViewModel
import org.dhis2.android.rtsm.ui.managestock.ManageStockViewModel
import org.dhis2.android.rtsm.ui.managestock.components.ManageStockTable
import timber.log.Timber

@OptIn(ExperimentalMaterialApi::class)
@Composable
Expand Down Expand Up @@ -93,6 +92,7 @@ fun MainContent(
"" -> 0f
else -> 1f
}
manageStockViewModel.onSearchQueryChanged(it)
},
modifier = Modifier
.padding(horizontal = 5.dp)
Expand Down Expand Up @@ -143,7 +143,7 @@ fun MainContent(
),
keyboardActions = KeyboardActions(
onSearch = {
Timber.tag("SEARCH_DATA").v(search)
manageStockViewModel.onSearchQueryChanged(search)
},
onDone = {
focusManager.clearFocus()
Expand Down

0 comments on commit edf5716

Please sign in to comment.