Program: 19013
Project: 19013
Buggy source:
@Override public void onViewCreated(View view,@Nullable Bundle savedInstanceState){
  super.onViewCreated(view,savedInstanceState);
  mRecyclerView=(RecyclerView)view.findViewById(R.id.filters);
  mClearFilters=(Button)view.findViewById(R.id.clear_filters);
  mClearFilters.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      mAdapter.clearAllFilters();
    }
  }
);
  final Context context=view.getContext();
  TextViewCompat.setCompoundDrawablesRelativeWithIntrinsicBounds(mClearFilters,null,null,AppCompatResources.getDrawable(context,R.drawable.ic_clear_all),null);
  mRecyclerView.setHasFixedSize(true);
  mRecyclerView.addItemDecoration(new DividerDecoration(context));
  final View filtersHeader=view.findViewById(R.id.filters_header);
  mRecyclerView.addOnScrollListener(new RecyclerView.OnScrollListener(){
    @Override public void onScrolled(    RecyclerView recyclerView,    int dx,    int dy){
      filtersHeader.setActivated(recyclerView.canScrollVertically(-1));
    }
  }
);
  mAdapter=new SessionsFilterAdapter(context,null,savedInstanceState);
  mAdapter.setSessionFilterAdapterListener(new OnFiltersChangedListener(){
    @Override public void onFiltersChanged(    TagFilterHolder filterHolder){
      mClearFilters.setVisibility(filterHolder.hasAnyFilters() ? View.VISIBLE : View.GONE);
      if (mListener != null) {
        mListener.onFiltersChanged(filterHolder);
        CharSequence filtersDesc=filterHolder.describeFilters(getResources(),getContext().getTheme());
        AnalyticsHelper.sendEvent("String_Node_Str","String_Node_Str",String.valueOf(filtersDesc));
      }
    }
  }
);
  mRecyclerView.setAdapter(mAdapter);
}

Fixed version (ground truth):
@Override public void onViewCreated(View view,@Nullable Bundle savedInstanceState){
  super.onViewCreated(view,savedInstanceState);
  mRecyclerView=(RecyclerView)view.findViewById(R.id.filters);
  mClearFilters=(Button)view.findViewById(R.id.clear_filters);
  mClearFilters.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      mAdapter.clearAllFilters();
    }
  }
);
  final Context context=view.getContext();
  TextViewCompat.setCompoundDrawablesRelativeWithIntrinsicBounds(mClearFilters,null,null,AppCompatResources.getDrawable(context,R.drawable.ic_clear_all),null);
  mRecyclerView.setHasFixedSize(true);
  mRecyclerView.addItemDecoration(new DividerDecoration(context));
  final View filtersHeader=view.findViewById(R.id.filters_header);
  mRecyclerView.addOnScrollListener(new RecyclerView.OnScrollListener(){
    @Override public void onScrolled(    RecyclerView recyclerView,    int dx,    int dy){
      filtersHeader.setActivated(recyclerView.canScrollVertically(-1));
    }
  }
);
  mAdapter=new SessionsFilterAdapter(context,null,savedInstanceState);
  mAdapter.setSessionFilterAdapterListener(new OnFiltersChangedListener(){
    @Override public void onFiltersChanged(    TagFilterHolder filterHolder){
      mClearFilters.setVisibility(filterHolder.hasAnyFilters() ? View.VISIBLE : View.GONE);
      if (mListener != null) {
        mListener.onFiltersChanged(filterHolder);
        CharSequence filtersDesc=filterHolder.describeFilters(getResources(),getContext().getTheme());
        AnalyticsHelper.sendEvent("String_Node_Str","String_Node_Str",String.valueOf(filtersDesc));
      }
    }
  }
);
  TagFilterHolder filters=mAdapter.getFilters();
  if (filters != null) {
    mClearFilters.setVisibility(filters.hasAnyFilters() ? View.VISIBLE : View.GONE);
  }
  mRecyclerView.setAdapter(mAdapter);
}