Inherit identity color from account color

This commit is contained in:
M66B
2023-06-17 09:54:30 +02:00
parent 1d5f595cf5
commit 9ef14f399f
5 changed files with 12 additions and 7 deletions

View File

@@ -59,7 +59,8 @@ public class FragmentDialogSelectIdentity extends FragmentDialogBase {
int vpad = (getCount() > 10 ? dp6 : dp12);
tv.setPadding(0, vpad, 0, vpad);
vwColor.setBackgroundColor(identity.color == null ? Color.TRANSPARENT : identity.color);
Integer color = (identity.color == null ? identity.accountColor : identity.color);
vwColor.setBackgroundColor(color == null ? Color.TRANSPARENT : color);
tv.setText(identity.getDisplayName());
return view;