Skip to content

Commit

Permalink
Minor Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
KwabenBerko committed Feb 28, 2021
1 parent 5b99e85 commit 8795771
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ fun PuppyListItem(puppy: Puppy, onPuppyClicked: (puppy: Puppy) -> Unit) {
Column(modifier = Modifier.padding(0.dp)) {
Image(
painter = painterResource(id = puppy.image),
contentDescription = null,
contentDescription = "Image of ${puppy.name}",
contentScale = ContentScale.Crop,
modifier = Modifier
.height(170.dp)
Expand Down Expand Up @@ -108,7 +108,7 @@ fun PuppyListItem(puppy: Puppy, onPuppyClicked: (puppy: Puppy) -> Unit) {
modifier = Modifier
.size(17.dp),
imageVector = if (puppy.sex == Sex.FEMALE) Icons.Default.Female else Icons.Default.Male,
contentDescription = null,
contentDescription = if (puppy.sex == Sex.FEMALE) "Female" else "Male",
tint = Color.White
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ fun IntroScreen(window: Window, navController: NavController) {
modifier = Modifier.fillMaxSize(),
painter = painterResource(id = R.drawable.buddy_bg),
contentScale = ContentScale.Crop,
contentDescription = null
contentDescription = "Buddy App background image"
)

Column(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ fun PuppyDetailScreen(puppy: Puppy, window: Window, navController: NavController
painter = painterResource(id = puppy.image),
contentScale = ContentScale.Crop,
modifier = Modifier.fillMaxSize(),
contentDescription = null
contentDescription = "Image of ${puppy.name}"
)
Box(
modifier = Modifier
Expand All @@ -108,7 +108,7 @@ fun PuppyDetailScreen(puppy: Puppy, window: Window, navController: NavController
imageVector = Icons.Default.ArrowBack,
modifier = Modifier.size(28.dp),
tint = colorResource(id = R.color.blue_700),
contentDescription = null
contentDescription = "Go back to puppies list"
)
}
}
Expand Down Expand Up @@ -148,7 +148,7 @@ fun PuppyDetailScreen(puppy: Puppy, window: Window, navController: NavController
modifier = Modifier
.size(22.dp),
imageVector = if (puppy.sex == Sex.FEMALE) Icons.Default.Female else Icons.Default.Male,
contentDescription = null,
contentDescription = if (puppy.sex == Sex.FEMALE) "Male" else "Female",
tint = Color.White
)
}
Expand Down

0 comments on commit 8795771

Please sign in to comment.