question: @ SuppressWarnings ( "WeakerAccess" ) public void updateRealmResults ( RealmResults < T > queryResults ) { if ( changeListener != null && realmResults != null ) realmResults . removeChangeListener ( changeListener ) ; realmResults = queryResults ; if ( realmResults != null && changeListener != null ) realmResults . addChangeListener ( changeListener ) ; selectedPositions . clear ( ) ; lastSelectedPos = - 1 ; ids = getIdsOfRealmResults ( ) ; notifyDataSetChanged ( ) ; }
target:  Update the RealmResults associated with the Adapter. Useful when the query has been changed. If the query does not change you might consider using the automaticUpdate feature.