Update AutoLineFeedLayout.java

replace getWidth with measureWidth(widthMeasureSpec)