Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

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

Open
ypresto opened this issue Apr 6, 2015 · 1 comment

Comments

@ypresto
Copy link
Contributor

ypresto commented Apr 6, 2015

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
Copy link
Contributor Author

ypresto commented Apr 6, 2015

Seems to be caused by this commit c5a6b2a#diff-c38b0300174165db5f03f319b3a71847L226
This removed super.onMeasure() call before return.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant