thorbenprimke / realm-recyclerview

A RecyclerView that is powered by Realm and lots more
555 stars 151 forks source link

In Realm 0.89 realmResults.getTable() is deprecated and now removed #86

Closed ahmadalibaloch closed 7 years ago

ahmadalibaloch commented 8 years ago

Which if we turn on animate results, crashes the app saying NoSuchMethodfound exception. In this file RealmBasedRecycleViewAdapter.class

 if(animateResults) {
                this.animatePrimaryColumnIndex = realmResults.getTable().getTable().getPrimaryKey();
                if(this.animatePrimaryColumnIndex == -1L) {
                    throw new IllegalStateException("Animating the results requires a primaryKey.");
                }
StefanWegener commented 8 years ago

Same if we use section headers. Does anyone has a solution?

ahmadalibaloch commented 8 years ago

Disable the animation be setting false to animateIdType, the 4th parameter in constructor, for the problem I mentioned. As is visible from my above comment the if condition check.

thorbenprimke commented 7 years ago

It's updated now. Animations work again with compile 'com.github.thorbenprimke:realm-recyclerview:0.9.25'.