Skip to content
Snippets Groups Projects
Commit 421ce904 authored by akwizgran's avatar akwizgran
Browse files

Replaced a FIXME with an explanation of why it doesn't need to be fixed.

parent 3787ed9e
No related merge requests found
......@@ -259,9 +259,9 @@ implements InvitationListener {
task = invitationTaskFactory.createTask(localAuthorId,
localInvitationCode, code);
taskHandle = referenceManager.putReference(task, InvitationTask.class);
// FIXME: Why can't the activity clean up the reference? If the task
// has a reference to the activity (as a listener), it won't be GCed
task.addListener(AddContactActivity.this);
// Add a second listener so we can remove the first in onDestroy(),
// allowing the activity to be garbage collected if it's destroyed
task.addListener(new ReferenceCleaner(referenceManager, taskHandle));
task.connect();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment