private void updateAction(TextView view,boolean isChecked,boolean isUser){
  if (isChecked) {
    view.setText(isUser ? R.string.following : R.string.inviting);
    view.setCompoundDrawablesWithIntrinsicBounds(R.drawable.ic_action_accept_small,0,0,0);
  }
 else {
    view.setText(isUser ? R.string.follow : R.string.invite);
    view.setCompoundDrawablesWithIntrinsicBounds(R.drawable.ic_action_new_small,0,0,0);
  }
}

private void updateAction ( TextView view , boolean isChecked , boolean isUser ) { if ( isChecked ) { view . setText ( isUser ? R . string . following : R . string . inviting ) ; view . setCompoundDrawablesWithIntrinsicBounds ( R . drawable . ic_action_accept_small , 0 , 0 , 0 ) ; } else { view . setText ( isUser ? R . string . follow : R . string . invite ) ; view . setCompoundDrawablesWithIntrinsicBounds ( R . drawable . ic_action_new_small , 0 , 0 , 0 ) ; } }
update the action view text and icon based on its state .
