Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nh/fix 1894 changelistener not called #1927

Merged
merged 1 commit into from
Dec 11, 2015

Conversation

nhachicha
Copy link
Collaborator

fix #1894 + provide a work around for #1886 while waiting for core fix, the work around avoid calling sync_if_needed if the RealmObject/RealmResults doesn't have any listeners

Note: it will be faster (small diff) to review this PR first #1892

@nhachicha nhachicha self-assigned this Dec 10, 2015
@nhachicha
Copy link
Collaborator Author

@realm/java

dog.addChangeListener(new RealmChangeListener() {
@Override
public void onChange() {
assertEquals("Akamaru", dog.getName());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even ninja dogs can't hide when they are in a Realm :-)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

poof

@nhachicha
Copy link
Collaborator Author

retest this please

1 similar comment
@nhachicha
Copy link
Collaborator Author

retest this please

@@ -6,6 +6,9 @@
* Updated ProGuard configuration (#1904).
* Fixed a bug which could cause a crash when closing Realm instances in change listeners (#1900).
* Fix a crash occurring during update of multiple async queries (#1895).
* Fix (#1884) listeners not triggered for RealmObject & RealmResults created using copy or create methods.
* Fix (#1894) RealmChangeListener never called inside RealmResults.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move issue to the end

@cmelchior
Copy link
Contributor

Small comment about wording in the changelog, otherwise 👍

@nhachicha nhachicha force-pushed the nh/fix_1894_changelistener_not_called branch from e399a1f to 734f03e Compare December 11, 2015 14:32
@kneth
Copy link
Contributor

kneth commented Dec 11, 2015

👍

nhachicha added a commit that referenced this pull request Dec 11, 2015
…lled

Nh/fix 1894 changelistener not called
@nhachicha nhachicha merged commit b895562 into release/0.86 Dec 11, 2015
@nhachicha nhachicha removed the Review label Dec 11, 2015
@nhachicha nhachicha deleted the nh/fix_1894_changelistener_not_called branch December 11, 2015 14:46
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants