Fix Spotless issue manually

Change-Id: Icd560e6ceaaeee0a6f502fe49b3403ab07f926ef
pull/1837/head
Angie Sasmita 3 years ago
parent a2242434b0
commit 2430c8c25b

@ -38,7 +38,7 @@ fun DynamicAsyncImage(
placeholder = placeholder, placeholder = placeholder,
model = imageUrl, model = imageUrl,
contentDescription = contentDescription, contentDescription = contentDescription,
colorFilter = if(iconTint != null) ColorFilter.tint(iconTint) else null, colorFilter = if (iconTint != null) ColorFilter.tint(iconTint) else null,
modifier = modifier modifier = modifier
) )
} }

@ -148,7 +148,7 @@ private fun EmptyState(modifier: Modifier = Modifier) {
Image( Image(
modifier = Modifier.fillMaxWidth(), modifier = Modifier.fillMaxWidth(),
painter = painterResource(id = R.drawable.img_empty_bookmarks), painter = painterResource(id = R.drawable.img_empty_bookmarks),
colorFilter = if(iconTint != null) ColorFilter.tint(iconTint) else null, colorFilter = if (iconTint != null) ColorFilter.tint(iconTint) else null,
contentDescription = null contentDescription = null
) )

@ -130,7 +130,8 @@ class SettingsDialogTest {
) )
} }
composeTestRule.onNodeWithText(getString(R.string.dynamic_color_preference)).assertDoesNotExist() composeTestRule.onNodeWithText(getString(R.string.dynamic_color_preference))
.assertDoesNotExist()
composeTestRule.onNodeWithText(getString(R.string.dynamic_color_yes)).assertDoesNotExist() composeTestRule.onNodeWithText(getString(R.string.dynamic_color_yes)).assertDoesNotExist()
composeTestRule.onNodeWithText(getString(R.string.dynamic_color_no)).assertDoesNotExist() composeTestRule.onNodeWithText(getString(R.string.dynamic_color_no)).assertDoesNotExist()
} }
@ -153,7 +154,8 @@ class SettingsDialogTest {
) )
} }
composeTestRule.onNodeWithText(getString(R.string.dynamic_color_preference)).assertDoesNotExist() composeTestRule.onNodeWithText(getString(R.string.dynamic_color_preference))
.assertDoesNotExist()
composeTestRule.onNodeWithText(getString(R.string.dynamic_color_yes)).assertDoesNotExist() composeTestRule.onNodeWithText(getString(R.string.dynamic_color_yes)).assertDoesNotExist()
composeTestRule.onNodeWithText(getString(R.string.dynamic_color_no)).assertDoesNotExist() composeTestRule.onNodeWithText(getString(R.string.dynamic_color_no)).assertDoesNotExist()
} }

Loading…
Cancel
Save