-
Notifications
You must be signed in to change notification settings - Fork 2
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
base: develop
Are you sure you want to change the base?
Conversation
public void onUpdateAvailable(@NonNull Timeline timeline) { | ||
if (getAdapterPosition() != RecyclerView.NO_POSITION) { | ||
public void onUpdateAvailable(@NonNull final Timeline timeline) { | ||
if (wantsUpdates()) { |
There was a problem hiding this comment.
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.
There was a problem hiding this 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()); |
There was a problem hiding this comment.
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)); |
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
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() ?
https://trello.com/c/ONXgjJ2Z/109-zoomed-out-timeline-sleep-scores-will-change-when-swiping-through-the-list-and-returning-to-the-beginning