public void notifyTargetActivityChanged(TargetActivity targetActivity){
  int in=targetActivities.indexOf(targetActivity);
  if (in != -1) {
    notifyItemChanged(in + 1);
  }
}

public void notifyTargetActivityChanged ( TargetActivity targetActivity ) { int in = targetActivities . indexOf ( targetActivity ) ; if ( in != - 1 ) { notifyItemChanged ( in + 1 ) ; } }
used to notify that a target activity changed .
