mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 13:49:53 +01:00
Replaced a FIXME with an explanation of why it doesn't need to be fixed.
This commit is contained in:
@@ -259,9 +259,9 @@ implements InvitationListener {
|
|||||||
task = invitationTaskFactory.createTask(localAuthorId,
|
task = invitationTaskFactory.createTask(localAuthorId,
|
||||||
localInvitationCode, code);
|
localInvitationCode, code);
|
||||||
taskHandle = referenceManager.putReference(task, InvitationTask.class);
|
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);
|
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.addListener(new ReferenceCleaner(referenceManager, taskHandle));
|
||||||
task.connect();
|
task.connect();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user