private void populateDataRecyclerList(){
  dataAdapter.setCycle(cycle);
  dataAdapter.setDividerHeader(new RecyclerDivider(resources.getString(R.string.app_usage_header),-1));
  dataAdapter.setAppUsage(usages);
  dataAdapter.setMyAppHeader(new RecyclerDivider(resources.getString(R.string.my_apps_header),-1));
  dataAdapter.setMyApps(appOffers);
  dataAdapter.setAcceptedOfferHeader(new RecyclerDivider(resources.getString(R.string.add_to_plan_header),0));
  List<Offer> dataOffers=new ArrayList<>();
  for (  Offer offer : acceptedOffers) {
    if (offer.getType() == PlanConstants.DATA) {
      dataOffers.add(offer);
    }
  }
  dataAdapter.setCardOffers(dataOffers);
}

private void populateDataRecyclerList ( ) { dataAdapter . setCycle ( cycle ) ; dataAdapter . setDividerHeader ( new RecyclerDivider ( resources . getString ( R . string . app_usage_header ) , - 1 ) ) ; dataAdapter . setAppUsage ( usages ) ; dataAdapter . setMyAppHeader ( new RecyclerDivider ( resources . getString ( R . string . my_apps_header ) , - 1 ) ) ; dataAdapter . setMyApps ( appOffers ) ; dataAdapter . setAcceptedOfferHeader ( new RecyclerDivider ( resources . getString ( R . string . add_to_plan_header ) , 0 ) ) ; List < Offer > dataOffers = new ArrayList < > ( ) ; for ( Offer offer : acceptedOffers ) { if ( offer . getType ( ) == PlanConstants . DATA ) { dataOffers . add ( offer ) ; } } dataAdapter . setCardOffers ( dataOffers ) ; }
populate the recycler view with the relevant data .
