Program: 162585
Project: 162585
Buggy source:
@Override public void onActivityCreated(Bundle savedInstanceState){
  super.onActivityCreated(savedInstanceState);
  s=getArguments().getString("String_Node_Str");
  f=new File(s);
  listView.setVisibility(View.VISIBLE);
  Sp=PreferenceManager.getDefaultSharedPreferences(getActivity());
  listView.setVisibility(View.VISIBLE);
  mLayoutManager=new LinearLayoutManager(getActivity());
  listView.setLayoutManager(mLayoutManager);
  if (mainActivity.theme1 == 1)   rootView.setBackgroundColor(getResources().getColor(R.color.holo_dark_background));
 else   listView.setBackgroundColor(getResources().getColor(android.R.color.background_light));
  gobackitem=Sp.getBoolean("String_Node_Str",true);
  coloriseIcons=Sp.getBoolean("String_Node_Str",false);
  Calendar calendar=Calendar.getInstance();
  showSize=Sp.getBoolean("String_Node_Str",false);
  showLastModified=Sp.getBoolean("String_Node_Str",true);
  year=("String_Node_Str" + calendar.get(Calendar.YEAR)).substring(2,4);
  skin=Sp.getString("String_Node_Str","String_Node_Str");
  iconskin=Sp.getString("String_Node_Str",skin);
  String x=getSelectionColor();
  skinselection=Color.parseColor(x);
  files=new ArrayList<File>();
  loadlist(f.getPath());
  mToolbarContainer=getActivity().findViewById(R.id.lin);
  hidemode=Sp.getInt("String_Node_Str",0);
  paddingTop=(mToolbarHeight=getToolbarHeight(getActivity())) + dpToPx(72);
  try {
    mainActivity.toolbar.setTitle(f.getName());
  }
 catch (  Exception e) {
    mainActivity.toolbar.setTitle(getResources().getString(R.string.zip_viewer));
  }
  mainActivity.tabsSpinner.setVisibility(View.GONE);
  mainActivity.fabHideAnim=AnimationUtils.loadAnimation(getActivity(),R.anim.fab_hide);
  mainActivity.floatingActionButton.setAnimation(mainActivity.fabHideAnim);
  mainActivity.floatingActionButton.animate();
  mainActivity.floatingActionButton.setVisibility(View.GONE);
  mainActivity.supportInvalidateOptionsMenu();
}

Fixed version (ground truth):
@Override public void onActivityCreated(Bundle savedInstanceState){
  super.onActivityCreated(savedInstanceState);
  s=getArguments().getString("String_Node_Str");
  f=new File(s);
  listView.setVisibility(View.VISIBLE);
  Sp=PreferenceManager.getDefaultSharedPreferences(getActivity());
  listView.setVisibility(View.VISIBLE);
  mLayoutManager=new LinearLayoutManager(getActivity());
  listView.setLayoutManager(mLayoutManager);
  if (mainActivity.theme1 == 1)   rootView.setBackgroundColor(getResources().getColor(R.color.holo_dark_background));
 else   listView.setBackgroundColor(getResources().getColor(android.R.color.background_light));
  gobackitem=Sp.getBoolean("String_Node_Str",true);
  coloriseIcons=Sp.getBoolean("String_Node_Str",false);
  Calendar calendar=Calendar.getInstance();
  showSize=Sp.getBoolean("String_Node_Str",false);
  showLastModified=Sp.getBoolean("String_Node_Str",true);
  year=("String_Node_Str" + calendar.get(Calendar.YEAR)).substring(2,4);
  skin=Sp.getString("String_Node_Str","String_Node_Str");
  iconskin=Sp.getString("String_Node_Str",skin);
  String x=getSelectionColor();
  skinselection=Color.parseColor(x);
  files=new ArrayList<File>();
  loadlist(f.getPath());
  mToolbarContainer=getActivity().findViewById(R.id.lin);
  hidemode=Sp.getInt("String_Node_Str",0);
  try {
    mainActivity.toolbar.setTitle(f.getName());
  }
 catch (  Exception e) {
    mainActivity.toolbar.setTitle(getResources().getString(R.string.zip_viewer));
  }
  mainActivity.tabsSpinner.setVisibility(View.GONE);
  mainActivity.fabHideAnim=AnimationUtils.loadAnimation(getActivity(),R.anim.fab_hide);
  mainActivity.floatingActionButton.setAnimation(mainActivity.fabHideAnim);
  mainActivity.floatingActionButton.animate();
  mainActivity.floatingActionButton.setVisibility(View.GONE);
  mainActivity.supportInvalidateOptionsMenu();
  mToolbarHeight=getToolbarHeight(getActivity());
  paddingTop=(mToolbarHeight) + dpToPx(72);
  if (hidemode == 2)   mToolbarHeight=paddingTop;
  mToolbarContainer.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener(){
    @Override public void onGlobalLayout(){
      if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN) {
        mToolbarContainer.getViewTreeObserver().removeOnGlobalLayoutListener(this);
      }
 else {
        mToolbarContainer.getViewTreeObserver().removeGlobalOnLayoutListener(this);
      }
      paddingTop=mToolbarContainer.getHeight();
      if (hidemode != 2)       mToolbarHeight=mainActivity.toolbar.getHeight();
      if (scrollListener != null)       scrollListener.updatedimens(mToolbarHeight);
    }
  }
);
  scrollListener=new HidingScrollListener(mToolbarHeight){
    @Override public void onMoved(    int distance){
      mToolbarContainer.setTranslationY(-distance);
    }
    @Override public void onShow(){
      mToolbarContainer.animate().translationY(0).setInterpolator(new DecelerateInterpolator(2)).start();
    }
    @Override public void onHide(){
      mToolbarContainer.findViewById(R.id.lin).animate().translationY(-mToolbarHeight).setInterpolator(new AccelerateInterpolator(2)).start();
    }
  }
;
}