Skip to content

Activity leak when using FirebaseRecyclerAdapter #244

@talosdev

Description

@talosdev

I am noticing an activity leak with LeakCanary when using a FirebaseRecyclerAdapter.

Here's the trace from LeakCanary:

leak

My adapter does not hold a reference to a context.

The leak seems to go away if I explicitly remove the adapter from the recycler in the onDestroy method.

@Override
public void onDestroy() {
    super.onDestroy();
    recycler.setAdapter(null);
}

Any ideas if this is normal behaviour?

  • Google Play Services version: 9.4.0
  • Firebase/Play Services SDK version: 9.4.0
  • FirebaseUI version: 0.4.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions