thellmund / Android-Week-View

Display highly customizable calendar views in your Android app
Apache License 2.0
188 stars 98 forks source link

WeekView not restored correctly after changing screen orientation #259

Open MatijaSokol opened 3 years ago

MatijaSokol commented 3 years ago

Describe the bug When rotating screen, WeekView is not restored to last visible date. It is moved 1-2 days from last visible date. I use latest version of WeekView (5.3.2), but I also have same problem with previous versions. I tried to manually set current date after rotating screen (using scrollToTime() and scrollToDate()), but it is not working.

I reproduce bug with both Samsung Galaxy S7 Edge (Android 8) and Xiaomi Redmi 6 (Android 10).

To Reproduce Steps to reproduce the behavior:

  1. Go to WeekView
  2. Scroll to another date
  3. Rotate screen

Expected behavior Go to last visible date.

Screenshots ver hor

WeekView configuration weekView