Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4c57b804 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

Access color resources properly

parent 3314d322
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -94,10 +94,11 @@ public class TasksListCursorSpinnerAdapter extends CursorAdapter implements Spin
        }

        TextView listName = (TextView) convertView.findViewById(R.id.task_list_name);
        listName.setTextColor(mContext.getResources().getColor(R.color.color_default_primary_text));
        listName.setTextColor(convertView.getContext().getResources().getColor(R.color.color_default_primary_text));
        TextView accountName = (TextView) convertView.findViewById(R.id.task_list_account_name);
        if (null != accountName) {
            accountName.setTextColor(mContext.getResources().getColor(R.color.color_default_secondary_text));
            accountName.setTextColor(
                    convertView.getContext().getResources().getColor(R.color.color_default_secondary_text));
        }
        Cursor cursor = (Cursor) getItem(position);