Commit 6c21d19c authored by Yusuke Iwaki's avatar Yusuke Iwaki

fix crash on resume the chatroom fragment.

parent 3c8b8769
......@@ -24,12 +24,12 @@ public abstract class RealmModelListAdapter<T extends RealmObject, VM,
this.inflater = LayoutInflater.from(context);
}
/*package*/ RealmModelListAdapter<T, VM, VH> initializeWith(RealmHelper realmHelper,
/*package*/ RealmModelListAdapter<T, VM, VH> initializeWith(final RealmHelper realmHelper,
RealmListObserver.Query<T> query) {
realmListObserver = new RealmListObserver<>(realmHelper, query)
.setOnUpdateListener(new RealmListObserver.OnUpdateListener<T>() {
@Override public void onUpdateResults(List<T> results) {
updateData(results);
updateData(realmHelper.copyFromRealm(results));
}
});
return this;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment