Program: 26565
Project: 26565
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_low_profile);
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
    argbEvaluator=new ArgbEvaluator();
  }
  animShow=AnimationUtils.loadAnimation(this,R.anim.abc_slide_in_top);
  animHide=AnimationUtils.loadAnimation(this,R.anim.abc_slide_out_top);
  toolbar=(Toolbar)findViewById(R.id.toolbar);
  setSupportActionBar(toolbar);
  getSupportActionBar().setDisplayHomeAsUpEnabled(true);
  findViewById(R.id.toggle).setOnClickListener(new View.OnClickListener(){
    @Override @TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH) public void onClick(    View v){
      View decorView=getWindow().getDecorView();
      if (toolbar.getVisibility() == View.VISIBLE) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
          changeStatusBarBackground(false);
        }
 else         if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
          decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE);
        }
        toolbar.startAnimation(animHide);
        toolbar.setVisibility(View.GONE);
      }
 else {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
          changeStatusBarBackground(true);
        }
 else         if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
          decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_VISIBLE);
        }
        toolbar.setVisibility(View.VISIBLE);
        toolbar.startAnimation(animShow);
      }
    }
  }
);
}

Fixed version (ground truth):
@Override @TargetApi(Build.VERSION_CODES.HONEYCOMB) protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_low_profile);
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
    argbEvaluator=new ArgbEvaluator();
  }
  animShow=AnimationUtils.loadAnimation(this,R.anim.abc_slide_in_top);
  animHide=AnimationUtils.loadAnimation(this,R.anim.abc_slide_out_top);
  toolbar=(Toolbar)findViewById(R.id.toolbar);
  setSupportActionBar(toolbar);
  getSupportActionBar().setDisplayHomeAsUpEnabled(true);
  findViewById(R.id.toggle).setOnClickListener(new View.OnClickListener(){
    @Override @TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH) public void onClick(    View v){
      View decorView=getWindow().getDecorView();
      if (toolbar.getVisibility() == View.VISIBLE) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
          changeStatusBarBackground(false);
        }
 else         if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
          decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE);
        }
        toolbar.startAnimation(animHide);
        toolbar.setVisibility(View.GONE);
      }
 else {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
          changeStatusBarBackground(true);
        }
 else         if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
          decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_VISIBLE);
        }
        toolbar.setVisibility(View.VISIBLE);
        toolbar.startAnimation(animShow);
      }
    }
  }
);
}