Program: 79805
Project: 79805
Buggy source:
private void updateSelection(StatusBarNotification n){
  String oldNotif=NotificationHelper.getContentDescription((StatusBarNotification)mNotificationView.getTag());
  String newNotif=NotificationHelper.getContentDescription(n);
  boolean sameNotification=newNotif.equals(oldNotif);
  if (!mAnimating || sameNotification) {
    Bitmap b=n.getNotification().largeIcon;
    if (b != null) {
      mNotificationIcon.setImageDrawable(NotificationPeekViewUtils.getRoundedShape(mNotificationIcon,b));
    }
 else {
      mNotificationIcon.setImageDrawable(NotificationPeekViewUtils.getIconFromResource(mContext,n));
    }
    final PendingIntent contentIntent=n.getNotification().contentIntent;
    if (contentIntent != null) {
      final View.OnClickListener listener=new NotificationClicker(n,this);
      mNotificationIcon.setOnClickListener(listener);
    }
 else {
      mNotificationIcon.setOnClickListener(null);
    }
    mNotificationText.setText(NotificationPeekViewUtils.getNotificationDisplayText(mContext,n));
    mNotificationText.setVisibility(isKeyguardSecureShowing() ? View.GONE : View.VISIBLE);
    mNotificationView.setTag(n);
    if (!sameNotification || mNotificationView.getX() != 0) {
      mNotificationView.setAlpha(1f);
      mNotificationView.setX(0);
    }
  }
  for (int i=0; i < mNotificationsContainer.getChildCount(); i++) {
    ImageView view=(ImageView)mNotificationsContainer.getChildAt(i);
    if ((mAnimating ? oldNotif : newNotif).equals(NotificationHelper.getContentDescription((StatusBarNotification)view.getTag()))) {
      view.setAlpha(1f);
    }
 else {
      view.setAlpha(ICON_LOW_OPACITY);
    }
  }
}

Fixed version (ground truth):
private void updateSelection(StatusBarNotification n){
  String oldNotif=NotificationHelper.getContentDescription((StatusBarNotification)mNotificationView.getTag());
  String newNotif=NotificationHelper.getContentDescription(n);
  boolean sameNotification=newNotif.equals(oldNotif);
  if (!mAnimating || sameNotification) {
    Bitmap b=n.getNotification().largeIcon;
    if (b != null) {
      mNotificationIcon.setImageDrawable(NotificationPeekViewUtils.getRoundedShape(mContext.getResources(),b));
    }
 else {
      mNotificationIcon.setImageDrawable(NotificationPeekViewUtils.getIconFromResource(mContext,n));
    }
    final PendingIntent contentIntent=n.getNotification().contentIntent;
    if (contentIntent != null) {
      final View.OnClickListener listener=new NotificationClicker(n,this);
      mNotificationIcon.setOnClickListener(listener);
    }
 else {
      mNotificationIcon.setOnClickListener(null);
    }
    mNotificationText.setText(NotificationPeekViewUtils.getNotificationDisplayText(mContext,n));
    mNotificationText.setVisibility(isKeyguardSecureShowing() ? View.GONE : View.VISIBLE);
    mNotificationView.setTag(n);
    if (!sameNotification || mNotificationView.getX() != 0) {
      mNotificationView.setAlpha(1f);
      mNotificationView.setX(0);
    }
  }
  for (int i=0; i < mNotificationsContainer.getChildCount(); i++) {
    ImageView view=(ImageView)mNotificationsContainer.getChildAt(i);
    if ((mAnimating ? oldNotif : newNotif).equals(NotificationHelper.getContentDescription((StatusBarNotification)view.getTag()))) {
      view.setAlpha(1f);
    }
 else {
      view.setAlpha(ICON_LOW_OPACITY);
    }
  }
}