Skip to content

Commit eb65806

Browse files
committed
fixing orientation changes
1 parent 345df42 commit eb65806

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

library/src/main/java/com/alamkanak/weekview/WeekView.java

100644100755
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,13 @@ public boolean onScale(ScaleGestureDetector detector) {
403403
});
404404
}
405405

406+
// fix rotation changes
407+
@Override
408+
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
409+
super.onSizeChanged(w, h, oldw, oldh);
410+
mAreDimensionsInvalid = true;
411+
}
412+
406413
/**
407414
* Initialize time column width. Calculate value with all possible hours (supposed widest text)
408415
*/

0 commit comments

Comments
 (0)