Program: 41075
Project: 41075
Buggy source:
private void updateStatusLines(){
  if (mInstructions != null) {
    mStatus1.setText(mInstructions);
    if (TextUtils.isEmpty(mInstructions)) {
      mStatus1.setCompoundDrawablesWithIntrinsicBounds(0,0,0,0);
    }
 else {
      mStatus1.setCompoundDrawablesWithIntrinsicBounds(R.drawable.ic_lock_idle_lock,0,0,0);
    }
    mStatus1.setVisibility(View.VISIBLE);
    mStatusSep.setVisibility(View.GONE);
    mStatus2.setVisibility(View.GONE);
  }
 else   if (mShowingBatteryInfo && mNextAlarm == null) {
    if (mPluggedIn) {
      if (mUpdateMonitor.isDeviceCharged()) {
        mStatus1.setText(getContext().getString(R.string.lockscreen_charged));
      }
 else {
        mStatus1.setText(getContext().getString(R.string.lockscreen_plugged_in,mBatteryLevel));
      }
    }
 else {
      mStatus1.setText(getContext().getString(R.string.lockscreen_low_battery));
    }
    mStatus1.setCompoundDrawablesWithIntrinsicBounds(R.drawable.ic_lock_idle_charging,0,0,0);
    mStatus1.setVisibility(View.VISIBLE);
    mStatusSep.setVisibility(View.GONE);
    mStatus2.setVisibility(View.GONE);
  }
 else   if (mNextAlarm != null && !mShowingBatteryInfo) {
    mStatus1.setText(mNextAlarm);
    mStatus1.setCompoundDrawablesWithIntrinsicBounds(R.drawable.ic_lock_idle_alarm,0,0,0);
    mStatus1.setVisibility(View.VISIBLE);
    mStatusSep.setVisibility(View.GONE);
    mStatus2.setVisibility(View.GONE);
  }
 else   if (mNextAlarm != null && mShowingBatteryInfo) {
    mStatus1.setText(mNextAlarm);
    mStatusSep.setText("String_Node_Str");
    mStatus2.setText(getContext().getString(R.string.lockscreen_battery_short,Math.min(100,mBatteryLevel)));
    mStatus1.setCompoundDrawablesWithIntrinsicBounds(R.drawable.ic_lock_idle_alarm,0,0,0);
    if (mPluggedIn) {
      mStatus2.setCompoundDrawablesWithIntrinsicBounds(R.drawable.ic_lock_idle_charging,0,0,0);
    }
 else {
      mStatus2.setCompoundDrawablesWithIntrinsicBounds(0,0,0,0);
    }
    mStatus1.setVisibility(View.VISIBLE);
    mStatusSep.setVisibility(View.VISIBLE);
    mStatus2.setVisibility(View.VISIBLE);
  }
 else {
    mStatus1.setText(R.string.lockscreen_pattern_instructions);
    mStatus1.setCompoundDrawablesWithIntrinsicBounds(R.drawable.ic_lock_idle_lock,0,0,0);
    mStatus1.setVisibility(View.VISIBLE);
    mStatusSep.setVisibility(View.GONE);
    mStatus2.setVisibility(View.GONE);
  }
}

Fixed version (ground truth):
private void updateStatusLines(){
  if (mInstructions != null) {
    mStatus1.setText(mInstructions);
    if (TextUtils.isEmpty(mInstructions)) {
      mStatus1.setCompoundDrawablesWithIntrinsicBounds(0,0,0,0);
    }
 else {
      mStatus1.setCompoundDrawablesWithIntrinsicBounds(R.drawable.ic_lock_idle_lock,0,0,0);
    }
    mStatus1.setVisibility(View.VISIBLE);
    mStatusSep.setVisibility(View.GONE);
    mStatus2.setVisibility(View.GONE);
  }
 else   if (mShowingBatteryInfo && mNextAlarm == null) {
    if (mPluggedIn) {
      if (mUpdateMonitor.isDeviceCharged()) {
        mStatus1.setText(getContext().getString(R.string.lockscreen_charged));
      }
 else {
        mStatus1.setText(getContext().getString(R.string.lockscreen_plugged_in,mBatteryLevel));
      }
    }
 else {
      mStatus1.setText(getContext().getString(R.string.lockscreen_low_battery,mBatteryLevel));
    }
    mStatus1.setCompoundDrawablesWithIntrinsicBounds(R.drawable.ic_lock_idle_charging,0,0,0);
    mStatus1.setVisibility(View.VISIBLE);
    mStatusSep.setVisibility(View.GONE);
    mStatus2.setVisibility(View.GONE);
  }
 else   if (mNextAlarm != null && !mShowingBatteryInfo) {
    mStatus1.setText(mNextAlarm);
    mStatus1.setCompoundDrawablesWithIntrinsicBounds(R.drawable.ic_lock_idle_alarm,0,0,0);
    mStatus1.setVisibility(View.VISIBLE);
    mStatusSep.setVisibility(View.GONE);
    mStatus2.setVisibility(View.GONE);
  }
 else   if (mNextAlarm != null && mShowingBatteryInfo) {
    mStatus1.setText(mNextAlarm);
    mStatusSep.setText("String_Node_Str");
    mStatus2.setText(getContext().getString(R.string.lockscreen_battery_short,Math.min(100,mBatteryLevel)));
    mStatus1.setCompoundDrawablesWithIntrinsicBounds(R.drawable.ic_lock_idle_alarm,0,0,0);
    if (mPluggedIn) {
      mStatus2.setCompoundDrawablesWithIntrinsicBounds(R.drawable.ic_lock_idle_charging,0,0,0);
    }
 else {
      mStatus2.setCompoundDrawablesWithIntrinsicBounds(0,0,0,0);
    }
    mStatus1.setVisibility(View.VISIBLE);
    mStatusSep.setVisibility(View.VISIBLE);
    mStatus2.setVisibility(View.VISIBLE);
  }
 else {
    mStatus1.setText(R.string.lockscreen_pattern_instructions);
    mStatus1.setCompoundDrawablesWithIntrinsicBounds(R.drawable.ic_lock_idle_lock,0,0,0);
    mStatus1.setVisibility(View.VISIBLE);
    mStatusSep.setVisibility(View.GONE);
    mStatus2.setVisibility(View.GONE);
  }
}