Hi I'm using this library to implement my own ViewPagerTabActivity, but when I swipe and first Fragment item in FragmentAdapter got destroyed, it can't restore the right scrollY of ObservableListView because of a negative value on mPrevScrolledChildrenHeight. So I commit this change and at the same time I find that ObservableRecyclerView also has the same fix.
fix ObservableListView & ObservableGridView not restore the right scrollY state, reference: ObservableRecyclerView
Please review and accept it. Appreciated for that.
@CsHeng Thank you for your pull request!
You are right, this fix is already applied to ObservableRecyclerView in #120 and it should have been applied to ObservableListView and ObservableGridView also.
Hi I'm using this library to implement my own ViewPagerTabActivity, but when I swipe and first Fragment item in FragmentAdapter got destroyed, it can't restore the right scrollY of ObservableListView because of a negative value on mPrevScrolledChildrenHeight. So I commit this change and at the same time I find that ObservableRecyclerView also has the same fix.
fix ObservableListView & ObservableGridView not restore the right scrollY state, reference: ObservableRecyclerView
Please review and accept it. Appreciated for that.