Skip to content

2.1.2 Zoomed out timeline fix#1316

Open
zafrani wants to merge 5 commits into
developfrom
212/timeline-fix
Open

2.1.2 Zoomed out timeline fix#1316
zafrani wants to merge 5 commits into
developfrom
212/timeline-fix

Conversation

@zafrani

@zafrani zafrani commented Apr 25, 2017

Copy link
Copy Markdown
Contributor

public void onUpdateAvailable(@NonNull Timeline timeline) {
if (getAdapterPosition() != RecyclerView.NO_POSITION) {
public void onUpdateAvailable(@NonNull final Timeline timeline) {
if (wantsUpdates()) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what fixed it.

@simonc312 simonc312 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haven't run this build on a device yet, but there are only minor comments I have.

throw new IllegalStateException("Activity must implement OnTimelineDateSelectedListener");
}
this.listener = ((OnTimelineDateSelectedListener) getActivity());
this.zoomedOutTimelineInteractor.setFirstDate(DateFormatter.lastNight());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of saving timeline and start date of first timeline through arguments here it was moved that to onViewCreated

this.zoomedOutTimelineInteractor.cacheTimeline(startDate, firstTimeline);
}
}
this.presenterView.setMonthText(this.dateFormatter.formatAsTimelineNavigatorDate(startDate));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can make use of the getFormattedDate( LocalDate localDate) method here

}

@Override
public void retrieveTimelines() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nitPick can this just be standardized as getTimelines() ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants