etsy/AndroidStaggeredGrid — pull request #85 by lzanita09 (2014-04-05 14:59:19+00:00)
Title: Fixed setAdapter bug

adapter should be mAdapter, otherwise when adding header view, mItemCount will get the original adapter's getCount(), which doesn't count the number of headers and/or footers. Later on in layoutChildren() method it'll throw IllegalStateException, because the number of mItemCount and mAdapter.getCount() will never be equal.