Search in sources :

Example 1 with BaseActivity

use of com.kickstarter.libs.BaseActivity in project android-oss by kickstarter.

the class ProjectViewHolder method setProjectSocialClick.

public void setProjectSocialClick() {
    if (project.isFriendBacking()) {
        if (project.friends().size() > 2) {
            projectSocialViewGroup.setBackground(clickIndicatorLightMaskedDrawable);
            projectSocialViewGroup.setOnClickListener(view -> {
                final BaseActivity activity = (BaseActivity) context;
                final Intent intent = new Intent(activity, ProjectSocialActivity.class).putExtra(IntentKey.PROJECT, project);
                activity.startActivity(intent);
                activity.overridePendingTransition(R.anim.slide_in_right, R.anim.fade_out_slide_out_left);
            });
        }
    }
}
Also used : ProjectSocialActivity(com.kickstarter.ui.activities.ProjectSocialActivity) BaseActivity(com.kickstarter.libs.BaseActivity) Intent(android.content.Intent)

Aggregations

Intent (android.content.Intent)1 BaseActivity (com.kickstarter.libs.BaseActivity)1 ProjectSocialActivity (com.kickstarter.ui.activities.ProjectSocialActivity)1