Program: 162597
Project: 162597
Buggy source:
public void createViews(ArrayList<Layoutelements> bitmap,boolean back,File f){
  try {
    if (bitmap != null) {
      TextView footerText=(TextView)footerView.findViewById(R.id.footerText);
      if (bitmap.size() == 0) {
        footerText.setText(res.getString(R.string.nofiles));
      }
 else {
        footerText.setText(res.getString(R.string.tapnhold));
      }
      if (gobackitem)       if (!f.getPath().equals("String_Node_Str")) {
        if (bitmap.size() == 0 || !bitmap.get(0).getSize().equals(goback))         bitmap.add(0,utils.newElement(res.getDrawable(R.drawable.abc_ic_ab_back_mtrl_am_alpha),"String_Node_Str","String_Node_Str","String_Node_Str",goback,"String_Node_Str",true,"String_Node_Str"));
      }
      adapter=new Recycleradapter(ma,bitmap,ma.getActivity());
      mSwipeRefreshLayout.setRefreshing(false);
      try {
        listView.setAdapter(adapter);
        if (!addheader && islist) {
          listView.removeItemDecoration(dividerItemDecoration);
          listView.removeItemDecoration(headersDecor);
          addheader=true;
        }
        if (addheader && islist) {
          dividerItemDecoration=new DividerItemDecoration(getActivity(),DividerItemDecoration.VERTICAL_LIST);
          listView.addItemDecoration(dividerItemDecoration);
          headersDecor=new StickyRecyclerHeadersDecoration(adapter);
          listView.addItemDecoration(headersDecor);
          addheader=false;
        }
        results=false;
        current=f.getPath();
        if (back) {
          if (scrolls.containsKey(current)) {
            Bundle b=scrolls.get(current);
            if (islist)             mLayoutManager.scrollToPositionWithOffset(b.getInt("String_Node_Str"),b.getInt("String_Node_Str"));
 else             mLayoutManagerGrid.scrollToPositionWithOffset(b.getInt("String_Node_Str"),b.getInt("String_Node_Str"));
          }
        }
        mainActivity.updatepaths();
        listView.setOnScrollListener(scrollListener);
        if (buttons.getVisibility() == View.VISIBLE)         mainActivity.bbar();
        mainActivity.updateDrawer(current);
        mainActivity.updatepager();
      }
 catch (      Exception e) {
      }
    }
 else {
      loadlist(new File(current),true);
    }
  }
 catch (  Exception e) {
  }
}

Fixed version (ground truth):
public void createViews(ArrayList<Layoutelements> bitmap,boolean back,File f){
  try {
    if (bitmap != null) {
      TextView footerText=(TextView)footerView.findViewById(R.id.footerText);
      if (bitmap.size() == 0) {
        footerText.setText(res.getString(R.string.nofiles));
      }
 else {
        footerText.setText(res.getString(R.string.tapnhold));
      }
      if (gobackitem)       if (!f.getPath().equals("String_Node_Str")) {
        if (bitmap.size() == 0 || !bitmap.get(0).getSize().equals(goback))         bitmap.add(0,utils.newElement(res.getDrawable(R.drawable.abc_ic_ab_back_mtrl_am_alpha),"String_Node_Str","String_Node_Str","String_Node_Str",goback,"String_Node_Str",true,"String_Node_Str"));
      }
      adapter=new Recycleradapter(ma,bitmap,ma.getActivity());
      mSwipeRefreshLayout.setRefreshing(false);
      try {
        listView.setAdapter(adapter);
        if (!addheader && islist) {
          listView.removeItemDecoration(dividerItemDecoration);
          listView.removeItemDecoration(headersDecor);
          addheader=true;
        }
        if (addheader && islist) {
          dividerItemDecoration=new DividerItemDecoration(getActivity(),DividerItemDecoration.VERTICAL_LIST);
          listView.addItemDecoration(dividerItemDecoration);
          headersDecor=new StickyRecyclerHeadersDecoration(adapter);
          listView.addItemDecoration(headersDecor);
          addheader=false;
        }
        results=false;
        current=f.getPath();
        if (back) {
          if (scrolls.containsKey(current)) {
            Bundle b=scrolls.get(current);
            if (islist)             mLayoutManager.scrollToPositionWithOffset(b.getInt("String_Node_Str"),b.getInt("String_Node_Str"));
 else             mLayoutManagerGrid.scrollToPositionWithOffset(b.getInt("String_Node_Str"),b.getInt("String_Node_Str"));
          }
        }
        mainActivity.updatepaths();
        listView.setOnScrollListener(new HidingScrollListener(mToolbarHeight,hidemode){
          @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();
          }
        }
);
        if (buttons.getVisibility() == View.VISIBLE)         mainActivity.bbar();
        mainActivity.updateDrawer(current);
        mainActivity.updatepager();
      }
 catch (      Exception e) {
      }
    }
 else {
      loadlist(new File(current),true);
    }
  }
 catch (  Exception e) {
  }
}