@Test public void justActivities() { final Activity activity0 = ActivityFactory.projectStateChangedPositiveActivity(); final Activity activity1 = ActivityFactory.friendBackingActivity(); final Activity activity2 = ActivityFactory.projectStateChangedActivity(); this.adapter.takeActivities(Arrays.asList(activity0, activity1, activity2)); final List<List<Activity>> data = Arrays.asList( Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), Arrays.asList( activity0, activity1, activity2 ) ); Assert.assertEquals(data, this.adapter.sections()); }
public void takeActivities(final @NonNull List<Activity> activities) { setSection(SECTION_ACTIVITIES_VIEW, activities); notifyDataSetChanged(); }
ActivityFeedAdapter extends KSAdapter { public void takeActivities(final @NonNull List<Activity> activities) { setSection(SECTION_ACTIVITIES_VIEW, activities); notifyDataSetChanged(); } }
ActivityFeedAdapter extends KSAdapter { public void takeActivities(final @NonNull List<Activity> activities) { setSection(SECTION_ACTIVITIES_VIEW, activities); notifyDataSetChanged(); } ActivityFeedAdapter(final @Nullable Delegate delegate); }
ActivityFeedAdapter extends KSAdapter { public void takeActivities(final @NonNull List<Activity> activities) { setSection(SECTION_ACTIVITIES_VIEW, activities); notifyDataSetChanged(); } ActivityFeedAdapter(final @Nullable Delegate delegate); void takeActivities(final @NonNull List<Activity> activities); void takeErroredBackings(final @NonNull List<ErroredBacking> erroredBackings); void takeSurveys(final @NonNull List<SurveyResponse> surveyResponses); void showLoggedInEmptyState(final boolean show); void showLoggedOutEmptyState(final boolean show); }
ActivityFeedAdapter extends KSAdapter { public void takeActivities(final @NonNull List<Activity> activities) { setSection(SECTION_ACTIVITIES_VIEW, activities); notifyDataSetChanged(); } ActivityFeedAdapter(final @Nullable Delegate delegate); void takeActivities(final @NonNull List<Activity> activities); void takeErroredBackings(final @NonNull List<ErroredBacking> erroredBackings); void takeSurveys(final @NonNull List<SurveyResponse> surveyResponses); void showLoggedInEmptyState(final boolean show); void showLoggedOutEmptyState(final boolean show);  }