@Override public void onAttachedToRecyclerView(RecyclerView recyclerView) { super.onAttachedToRecyclerView(recyclerView); mLevelIndicatorWidth = AppUtils.getDimensionInDp(mContext, R.dimen.level_indicator_width); mAutoExpand = Preferences.shouldAutoExpandComments(mContext); mColorCoded = Preferences.colorCodeEnabled(mContext); if (mColorCoded) { mColors = mContext.getResources().obtainTypedArray(R.array.color_codes); } mRecyclerView = recyclerView; }
@Override public void onAttachedToRecyclerView(RecyclerView recyclerView) { super.onAttachedToRecyclerView(recyclerView); mLevelIndicatorWidth = AppUtils.getDimensionInDp(mContext, R.dimen.level_indicator_width); }