public VendorPortfolioAdapter(
     Context context,
     List<VendorProfileMedia> mediaList,
     OnPortfolioVideoPlayListener onPortfolioVideoPlayListener) {
   mContext = context;
   mMediaList = mediaList;
   mOnPortfolioVideoPlayListener = onPortfolioVideoPlayListener;
   mDisplayImageOptions =
       PlannerApplication.getDefaultDisplayImageOptions(R.drawable.vendor_summary_item_bg_default);
 }
  @Override
  public void onDeleteAvatarPhoto() {
    ImageLoader.getInstance()
        .displayImage(
            String.format("drawable://%s", R.drawable.dashboard_backgroud_picture),
            mIvAvatar,
            PlannerApplication.getDefaultDisplayImageOptions(
                R.drawable.dashboard_backgroud_picture),
            null);
    final Activity activity = getActivity();
    if (activity != null && activity instanceof MainActivity) {
      initLoader(
          CouplePhotoProvider.removeCouplePhotoProvider(
              PlannerApplication.getUserProfile().getCouplePhotoId(),
              UserAccountFragment.this,
              null));
      UserProfile userProfile = PlannerApplication.getUserProfile();
      userProfile.setCouplePhotoId(UserProfile.COUPLE_ID);
      new UserProfileProvider()
          .updateAccount(
              userProfile,
              mWeddingLocationMarketCode,
              mHomeMarketCode,
              new OnProviderDataCallBackListener<UserProfile>() {
                @Override
                protected Activity getActivity() {
                  return UserAccountFragment.this.getActivity();
                }
              },
              UserAccountFragment.this,
              activity);
      UserProfile.updateUserCouplePhoto(PlannerApplication.getUserProfile().getCouplePhotoUrl());

      SyncedObject.DashboardPhotoChangedSyncedObject dashboardPhotoChangedSyncedObject =
          new SyncedObject.DashboardPhotoChangedSyncedObject();
      dashboardPhotoChangedSyncedObject.setUrl(null);
      syncedRefreshDataListener(dashboardPhotoChangedSyncedObject);

      if (!PlannerApplication.isEmptyOrNull(mStatus)
          && mStatus.equals(PlannerApplication.PREF_DASHBOARD_FLAG)) {
        activity.onBackPressed();
      }
    }

    PlannerEvent.getAvatarAction(DELETE_PHOTO_ACTION).track();
  }