goToCurrentTime does not work correctly
See original GitHub issueDescribe the bug
When using goToCurrentTime
only the scroll of goToHour
is executed but goToDate
is ignored.
To Reproduce Steps to reproduce the behavior:
- Scroll away from current time and current date
- Invoke method call for
goToCurrentTime
- Now the view scrolls to the correct time, but not the correct date
When using only goToDate(Calendar.getInstance())
scrolling to the current date works. Therefore, it seems that goToHour
‘overrides’ the scroll of goToDate
.
Additional context
- Android version: 10
- Samsung Tablet
- WeekView version: 5.0.1
Further idea as an improvement:
goToHour
throws an exception, when the hour
is outside of minHour
and maxHour
. I think the implementation would be more convenient, when the method just moves the hour
into the range between minHour
and maxHour
. Like in the following java code:
Math.min(Math.max(goToHour, weekView.getMinHour()), weekView.getMaxHour())
Similar to toToDate
, where the date is adjusted first.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Go to current time - DevExpress Support
We are currently reviewing your product and would like to know how to get the time ruler to go to the current time...
Read more >Q1. I cannot log in, I am receiving an error message saying ...
A. The portal does not reset passwords or require that they be reset. Please ensure that you are typing your employee number and...
Read more >Ask Question - Stack Overflow
Then I looked at the tmp file created and it is as if no parameter is given for the search. So, the question...
Read more >react-player - npm
A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia and ...
Read more >Keyboard shortcuts for Microsoft Teams for personal and small ...
Keys for other layouts might not correspond exactly to the keys on a US ... To open the keyboard shortcuts, press Ctrl+Period (.)...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
And thanks again for the fast fix release.
Yes,
scrollToDateTime
should cover the use case I described in (2.)