Commit 882432da authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Adapt the FlingView assert to fragment

parent 6b9f7179
......@@ -80,17 +80,12 @@ public class FlingViewGroup extends ViewGroup {
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
final int width = MeasureSpec.getSize(widthMeasureSpec);
final int widthMode = MeasureSpec.getMode(widthMeasureSpec);
final int heightMode = MeasureSpec.getMode(heightMeasureSpec);
//FIXME I had to comment this block after switching to Fragments
// I don't know if it was useful or not, but apparently it still works without.
/*
if (widthMode != MeasureSpec.EXACTLY ||
heightMode != MeasureSpec.EXACTLY) {
if (widthMode != MeasureSpec.EXACTLY ) {
throw new IllegalStateException("can only be used in EXACTLY mode.");
}
*/
final int count = getChildCount();
for (int i = 0; i < count; i++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment