public PatchSetChangesCard(Context context) { mContext = context; mGreen = context.getResources().getColor(R.color.text_green); mRed = context.getResources().getColor(R.color.text_red); mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); mUsingLightTheme = (PrefsFragment.getCurrentThemeID(mContext) == R.style.Theme_Light); }