use of org.aisen.weibo.sina.support.bean.MentionSuggestionBean in project AisenWeiBo by wangdan.
the class MentionSuggestionFragment method onItemClick.
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
MentionSuggestionBean bean = getAdapterItems().get(position);
WeiBoUser friend = bean.getUser();
if (friend == null) {
friend = new WeiBoUser();
friend.setIdstr(bean.getSuggestUser().getUid());
friend.setScreen_name(bean.getSuggestUser().getNickname());
new UserShowTask().execute(friend.getScreen_name());
} else {
FriendMentionDB.addFriend(friend);
}
Intent data = new Intent();
data.putExtra("bean", friend);
getActivity().setResult(Activity.RESULT_OK, data);
getActivity().finish();
}
Aggregations