TrevorEdwards / bigredapp-android

Informational Android app for Cornell University.
https://play.google.com/store/apps/details?id=is.genki.bigredapp.android&hl=en
MIT License
14 stars 8 forks source link

Crash when scrolling menus #11

Closed ghost closed 9 years ago

ghost commented 9 years ago

Steps to replicate:

  1. Open app
  2. Tap on location which has menus
  3. Scroll to bottom of menu
  4. It should crash with java.lang.IllegalArgumentException: Scrapped or attached views may not be recycled. isScrap:false isAttached:true

As per here, I tried removing android:animateLayoutChanges="true" in fragment_dining_location.xml, and now the crash doesn't happen, but it's funny because I can't find any notifyDataSetChanged() call in our code, and even besides that, the reason behind the given answer doesn't seem to make sense. However, there's some good discussion on this reddit thread regarding this issue too..

ghost commented 9 years ago

Well, just got an AS environment set back up on my computer, built the app, and am no longer experiencing this error. I will close it until it happens again.

ghost commented 9 years ago

Just had it happen again, which makes me think it's dependent on the menus for the day, because that's the only variable thing. Will check out more soon

ghost commented 9 years ago

Fixed by 394fbce98be787e2ffdd59fc1639469251803b51