-
Notifications
You must be signed in to change notification settings - Fork 420
Load events when scrolling in month view #2018
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
base: master
Are you sure you want to change the base?
Conversation
| mHandler.removeCallbacks(mUpdateLoader); | ||
| mHandler.postDelayed(mUpdateLoader, LOADER_DELAY); |
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 the same as the else case from onScrollStateChanged but you are deleting the if case there, can you give a reason why?
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 you comment here?
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.
The onScroll method has no idle state. It is triggered continuously as long as the user scrolls.
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.
ok, let me put it differently: why can we drop the stopLoader() call in line 490 then?
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 must be removed because otherwise the onScroll method will not work. I want the loader to be executed when scrolling. Or, conversely, it should be possible to reinsert mUpdateLoader into the handler queue in the onScroll method.
9ede086 to
f85e593
Compare
Increase WEEKS_BUFFER to 6 to load additional weeks around the visible area in the monthly view. Add onScroll method to load events without removing your finger from the display Removal of the delay in the onScrollStateChanged method so that events are displayed immediately when you remove your finger from the display.
f85e593 to
5c7427f
Compare
Fix #2016