Fix memory leaks in lists that use CursorAdapter

This commit is contained in:
Synced Synapse 2018-02-25 20:01:28 +00:00 committed by Martijn Brekhof
parent cda70ce109
commit 2206b90592
9 changed files with 10 additions and 10 deletions

View File

@ -269,7 +269,7 @@ public class AlbumListFragment extends AbstractCursorListFragment {
private int artWidth, artHeight;
public AlbumsAdapter(Context context) {
super(context, null, false);
super(context, null, 0);
this.hostManager = HostManager.getInstance(context);
// Get the art dimensions

View File

@ -322,7 +322,7 @@ public class AlbumSongsListFragment extends AbstractAdditionalInfoFragment
private class AlbumSongsAdapter extends CursorAdapter {
public AlbumSongsAdapter(Context context) {
super(context, null, false);
super(context, null, 0);
}
@Override

View File

@ -141,7 +141,7 @@ public class ArtistListFragment extends AbstractCursorListFragment {
private int artWidth, artHeight;
public ArtistsAdapter(Context context) {
super(context, null, false);
super(context, null, 0);
this.hostManager = HostManager.getInstance(context);
// Get the art dimensions

View File

@ -131,7 +131,7 @@ public class AudioGenresListFragment extends AbstractCursorListFragment {
private int artWidth, artHeight;
public AudioGenresAdapter(Context context) {
super(context, null, false);
super(context, null, 0);
this.hostManager = HostManager.getInstance(context);
// Get the art dimensions

View File

@ -143,7 +143,7 @@ public class MusicVideoListFragment extends AbstractCursorListFragment {
private int artWidth, artHeight;
public MusicVideosAdapter(Context context) {
super(context, null, false);
super(context, null, 0);
this.hostManager = HostManager.getInstance(context);
// Get the art dimensions

View File

@ -240,7 +240,7 @@ public class SongsListFragment extends AbstractCursorListFragment {
private int artWidth, artHeight;
public SongsAdapter(Context context) {
super(context, null, false);
super(context, null, 0);
this.hostManager = HostManager.getInstance(context);
// Get the art dimensions
@ -321,7 +321,7 @@ public class SongsListFragment extends AbstractCursorListFragment {
private class AlbumSongsAdapter extends CursorAdapter {
public AlbumSongsAdapter(Context context) {
super(context, null, false);
super(context, null, 0);
}
@Override

View File

@ -317,7 +317,7 @@ public class MovieListFragment extends AbstractCursorListFragment {
private int themeAccentColor;
public MoviesAdapter(Context context) {
super(context, null, false);
super(context, null, 0);
// Get the default accent color
Resources.Theme theme = context.getTheme();

View File

@ -225,7 +225,7 @@ public class TVShowEpisodeListFragment extends AbstractCursorListFragment {
private int themeAccentColor;
public SeasonsEpisodesAdapter(Context context) {
super(context, null, false);
super(context, null, 0);
// Get the default accent color
Resources.Theme theme = context.getTheme();

View File

@ -317,7 +317,7 @@ public class TVShowListFragment extends AbstractCursorListFragment {
inProgressColor, finishedColor;
public TVShowsAdapter(Context context) {
super(context, null, false);
super(context, null, 0);
// Get the default accent color
Resources.Theme theme = context.getTheme();