Display ingredient notes (#182)
* Display ingredient note * Add changelog * Update README.md
This commit is contained in:
@@ -17,8 +17,8 @@ plugins {
|
||||
android {
|
||||
defaultConfig {
|
||||
applicationId = "gq.kirmanak.mealient"
|
||||
versionCode = 31
|
||||
versionName = "0.4.2"
|
||||
versionCode = 32
|
||||
versionName = "0.4.3"
|
||||
testInstrumentationRunner = "gq.kirmanak.mealient.MealientTestRunner"
|
||||
testInstrumentationRunnerArguments += mapOf("clearPackageData" to "true")
|
||||
resourceConfigurations += listOf("en", "es", "ru", "fr", "nl", "pt", "de")
|
||||
|
||||
@@ -92,11 +92,21 @@ private fun IngredientListItem(
|
||||
onCheckedChange = { isChecked = it },
|
||||
)
|
||||
|
||||
Text(
|
||||
text = item.display,
|
||||
style = MaterialTheme.typography.bodyMedium,
|
||||
color = MaterialTheme.colorScheme.onSurface,
|
||||
)
|
||||
Column {
|
||||
Text(
|
||||
text = item.display,
|
||||
style = MaterialTheme.typography.bodyMedium,
|
||||
color = MaterialTheme.colorScheme.onSurface,
|
||||
)
|
||||
|
||||
if (item.note.isNotBlank()) {
|
||||
Text(
|
||||
text = item.note,
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
color = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ class ShareRecipeViewModelTest : BaseUnitTest() {
|
||||
|
||||
@Test
|
||||
fun `when repo returns result expect saveResult to show progress before result`() = runTest {
|
||||
val deferredActual = async(Dispatchers.Default) {
|
||||
val deferredActual = async(Dispatchers.Unconfined) {
|
||||
subject.saveResult.asFlow().take(3).toList(mutableListOf())
|
||||
}
|
||||
coEvery { shareRecipeRepo.saveRecipeByURL(any()) } returns "result"
|
||||
|
||||
Reference in New Issue
Block a user