Program: 162587
Project: 162587
Buggy source:
@Override public void onActivityCreated(Bundle savedInstanceState){
  super.onActivityCreated(savedInstanceState);
  Sp=PreferenceManager.getDefaultSharedPreferences(getActivity());
  s=getArguments().getString("String_Node_Str");
  f=new File(s);
  mToolbarContainer=getActivity().findViewById(R.id.lin);
  hidemode=Sp.getInt("String_Node_Str",0);
  paddingTop=(mToolbarHeight=getToolbarHeight(getActivity())) + dpToPx(72);
  listView.setVisibility(View.VISIBLE);
  mLayoutManager=new LinearLayoutManager(getActivity());
  listView.setLayoutManager(mLayoutManager);
  mainActivity.supportInvalidateOptionsMenu();
  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);
  mainActivity.findViewById(R.id.buttonbarframe).setBackgroundColor(Color.parseColor(skin));
  String x=getSelectionColor();
  skinselection=Color.parseColor(x);
  files=new ArrayList<File>();
  if (savedInstanceState == null)   loadlist(f.getPath());
 else {
    wholelist=savedInstanceState.getParcelableArrayList("String_Node_Str");
    elements=savedInstanceState.getParcelableArrayList("String_Node_Str");
    current=savedInstanceState.getString("String_Node_Str");
    f=new File(savedInstanceState.getString("String_Node_Str"));
    createviews(elements,current);
  }
  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);
  try {
    mainActivity.toolbar.setTitle(f.getName());
  }
 catch (  Exception e) {
    mainActivity.toolbar.setTitle(getResources().getString(R.string.zip_viewer));
  }
  mainActivity.supportInvalidateOptionsMenu();
}

Fixed version (ground truth):
@Override public void onActivityCreated(Bundle savedInstanceState){
  super.onActivityCreated(savedInstanceState);
  Sp=PreferenceManager.getDefaultSharedPreferences(getActivity());
  s=getArguments().getString("String_Node_Str");
  f=new File(s);
  mToolbarContainer=getActivity().findViewById(R.id.lin);
  hidemode=Sp.getInt("String_Node_Str",0);
  listView.setVisibility(View.VISIBLE);
  mLayoutManager=new LinearLayoutManager(getActivity());
  listView.setLayoutManager(mLayoutManager);
  mainActivity.supportInvalidateOptionsMenu();
  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);
  mainActivity.findViewById(R.id.buttonbarframe).setBackgroundColor(Color.parseColor(skin));
  String x=getSelectionColor();
  skinselection=Color.parseColor(x);
  files=new ArrayList<File>();
  if (savedInstanceState == null)   loadlist(f.getPath());
 else {
    wholelist=savedInstanceState.getParcelableArrayList("String_Node_Str");
    elements=savedInstanceState.getParcelableArrayList("String_Node_Str");
    current=savedInstanceState.getString("String_Node_Str");
    f=new File(savedInstanceState.getString("String_Node_Str"));
    createviews(elements,current);
  }
  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);
  try {
    mainActivity.toolbar.setTitle(f.getName());
  }
 catch (  Exception e) {
    mainActivity.toolbar.setTitle(getResources().getString(R.string.zip_viewer));
  }
  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();
    }
  }
;
}