ksoichiro / Android-ObservableScrollView

Android library to observe scroll events on scrollable views.
http://ksoichiro.github.io/Android-ObservableScrollView/
Apache License 2.0
9.65k stars 2.06k forks source link

check type of state in ObservableRecyclerView#onRestoreInstanceState(Parcelable) #258

Open yshrsmz opened 8 years ago

yshrsmz commented 8 years ago

fix #254

I'm not 100% sure if this is a right way, but recent version of support RecyclerView is doing this check, so I think it is reasonable to do same in this library

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-0.06%) to 93.308% when pulling 7d2734e846ab010891cf987bd080be73b5409f8a on yshrsmz:fix-classcastexception into 47a5fb2db5e93d923a8c6772cde48bbb7d932345 on ksoichiro:master.

yshrsmz commented 8 years ago

for those who want this fix right now, you can use my repo via jitpack as a temporary workaround.

repositories {
  maven { url "https://jitpack.io" }
}
dependencies {
  compile 'com.github.yshrsmz:Android-ObservableScrollView:d5178a3e6b'
}

this also includes all merged fixes from v1.6.0