File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
library/src/main/java/com/alamkanak/weekview Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -383,12 +383,16 @@ private void drawHeaderRowAndEvents(Canvas canvas) {
383
383
384
384
if (mAreDimensionsInvalid ) {
385
385
mAreDimensionsInvalid = false ;
386
- double scrollToHour = mScrollToHour ;
387
-
388
386
if (mScrollToDay != null )
389
387
goToDate (mScrollToDay );
390
- if (scrollToHour >= 0 )
391
- goToHour (scrollToHour );
388
+
389
+ mAreDimensionsInvalid = false ;
390
+ if (mScrollToHour >= 0 )
391
+ goToHour (mScrollToHour );
392
+
393
+ mScrollToDay = null ;
394
+ mScrollToHour = -1 ;
395
+ mAreDimensionsInvalid = false ;
392
396
}
393
397
if (mIsFirstDraw ){
394
398
mIsFirstDraw = false ;
@@ -921,8 +925,6 @@ private void deleteFarMonths(Calendar currentDay) {
921
925
public void invalidate () {
922
926
super .invalidate ();
923
927
mAreDimensionsInvalid = true ;
924
- mScrollToDay = null ;
925
- mScrollToHour = -1 ;
926
928
}
927
929
928
930
/////////////////////////////////////////////////////////////////
You can’t perform that action at this time.
0 commit comments