File tree 1 file changed +13
-6
lines changed
app/src/main/java/org/jellyfin/androidtv/ui/shared/toolbar
1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -47,12 +47,19 @@ fun HomeToolbar(
47
47
onClick = switchUsers,
48
48
contentPadding = if (userImageVisible) PaddingValues (3 .dp) else IconButtonDefaults .ContentPadding ,
49
49
) {
50
- Image (
51
- painter = if (userImageVisible) userImagePainter else painterResource(R .drawable.ic_switch_users),
52
- contentDescription = stringResource(R .string.lbl_switch_user),
53
- modifier = Modifier
54
- .clip(IconButtonDefaults .Shape )
55
- )
50
+ if (userImageVisible) {
51
+ Image (
52
+ painter = userImagePainter,
53
+ contentDescription = stringResource(R .string.lbl_switch_user),
54
+ modifier = Modifier
55
+ .clip(IconButtonDefaults .Shape )
56
+ )
57
+ } else {
58
+ Icon (
59
+ painter = painterResource(R .drawable.ic_switch_users),
60
+ contentDescription = stringResource(R .string.lbl_switch_user),
61
+ )
62
+ }
56
63
}
57
64
}
58
65
}
You can’t perform that action at this time.
0 commit comments