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:
parent
cb054007da
commit
9faca330bf
1 changed files with 7 additions and 0 deletions
|
@ -16,4 +16,11 @@ public class SmoothListFragment extends ListFragment {
|
||||||
setListShownNoAnimation(shown);
|
setListShownNoAnimation(shown);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onDestroyView() {
|
||||||
|
// Ensure the ListView is properly unregistered as an observer of the adapter
|
||||||
|
getListView().setAdapter(null);
|
||||||
|
super.onDestroyView();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue