FreeFlow icon indicating copy to clipboard operation
FreeFlow copied to clipboard

IlleagalStateException: onMeasure() did not set the measured dimension by calling setMeasuredDimension()

Open ypresto opened this issue 9 years ago • 1 comments

Returning without setting any dimension causes crash with message: "onMeasure() did not set the measured dimension by calling setMeasuredDimension()". This happens when mLayout or mAdapter is not set.

Line is cause of crash: https://github.com/Comcast/FreeFlow/blob/master/FreeFlow/src/com/comcast/freeflow/core/FreeFlowContainer.java#L245

Exception thrown on this line of android code: http://tools.oesf.biz/android-5.0.1_r1.0/xref/frameworks/base/core/java/android/view/View.java#17442

ypresto avatar Apr 06 '15 06:04 ypresto

Seems to be caused by this commit https://github.com/Comcast/FreeFlow/commit/c5a6b2a54a74aeb35bf5e836be4c505d6c863dce#diff-c38b0300174165db5f03f319b3a71847L226 This removed super.onMeasure() call before return.

ypresto avatar Apr 06 '15 08:04 ypresto