Search in sources :

Example 1 with Feed

use of com.gh4a.model.Feed in project gh4a by slapperwan.

the class CommonFeedAdapter method onClick.

@Override
public void onClick(View v) {
    if (v.getId() == R.id.iv_gravatar) {
        Feed feed = (Feed) v.getTag();
        Intent intent = UserActivity.makeIntent(mContext, feed.getAuthor());
        if (intent != null) {
            mContext.startActivity(intent);
        }
    } else {
        super.onClick(v);
    }
}
Also used : Intent(android.content.Intent) Feed(com.gh4a.model.Feed)

Aggregations

Intent (android.content.Intent)1 Feed (com.gh4a.model.Feed)1