Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.1.2 Zoomed out timeline fix #1316

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open

2.1.2 Zoomed out timeline fix #1316

wants to merge 5 commits into from

Conversation

public void onUpdateAvailable(@NonNull Timeline timeline) {
if (getAdapterPosition() != RecyclerView.NO_POSITION) {
public void onUpdateAvailable(@NonNull final Timeline timeline) {
if (wantsUpdates()) {
Copy link
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.

Copy link
Contributor

@simonc312 simonc312 left a comment

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
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
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
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.

2 participants