|
|
@ -51,6 +51,8 @@ public class FragmentDialogSelectIdentity extends FragmentDialogBase {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) {
|
|
|
|
public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) {
|
|
|
|
View view = super.getView(position, convertView, parent);
|
|
|
|
View view = super.getView(position, convertView, parent);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
TupleIdentityEx identity = getItem(position);
|
|
|
|
TupleIdentityEx identity = getItem(position);
|
|
|
|
|
|
|
|
|
|
|
|
View vwColor = view.findViewById(R.id.vwColor);
|
|
|
|
View vwColor = view.findViewById(R.id.vwColor);
|
|
|
@ -62,6 +64,9 @@ public class FragmentDialogSelectIdentity extends FragmentDialogBase {
|
|
|
|
Integer color = (identity.color == null ? identity.accountColor : identity.color);
|
|
|
|
Integer color = (identity.color == null ? identity.accountColor : identity.color);
|
|
|
|
vwColor.setBackgroundColor(color == null ? Color.TRANSPARENT : color);
|
|
|
|
vwColor.setBackgroundColor(color == null ? Color.TRANSPARENT : color);
|
|
|
|
tv.setText(identity.getDisplayName());
|
|
|
|
tv.setText(identity.getDisplayName());
|
|
|
|
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
|
|
|
|
Log.e(ex);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return view;
|
|
|
|
return view;
|
|
|
|
}
|
|
|
|
}
|
|
|
|