question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

goToCurrentTime does not work correctly

See original GitHub issue

Describe the bug When using goToCurrentTime only the scroll of goToHour is executed but goToDate is ignored.

To Reproduce Steps to reproduce the behavior:

  1. Scroll away from current time and current date
  2. Invoke method call for goToCurrentTime
  3. 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:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
FeFeltencommented, Nov 10, 2020

And thanks again for the fast fix release.

1reaction
FeFeltencommented, Nov 10, 2020

Yes, scrollToDateTime should cover the use case I described in (2.)

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found