1
0
Fork 0
mirror of https://github.com/MatomoCamp/matomocamp-companion-android.git synced 2024-09-19 16:13:46 +02:00

Fixed memory leak in ListFragment's adapter in older Android versions

This commit is contained in:
Christophe Beyls 2016-05-30 23:24:20 +02:00
parent cb054007da
commit 9faca330bf

View file

@ -16,4 +16,11 @@ public class SmoothListFragment extends ListFragment {
setListShownNoAnimation(shown);
}
}
@Override
public void onDestroyView() {
// Ensure the ListView is properly unregistered as an observer of the adapter
getListView().setAdapter(null);
super.onDestroyView();
}
}