Fix memory leaks in lists that use CursorAdapter
This commit is contained in:
parent
cda70ce109
commit
2206b90592
|
@ -269,7 +269,7 @@ public class AlbumListFragment extends AbstractCursorListFragment {
|
||||||
private int artWidth, artHeight;
|
private int artWidth, artHeight;
|
||||||
|
|
||||||
public AlbumsAdapter(Context context) {
|
public AlbumsAdapter(Context context) {
|
||||||
super(context, null, false);
|
super(context, null, 0);
|
||||||
this.hostManager = HostManager.getInstance(context);
|
this.hostManager = HostManager.getInstance(context);
|
||||||
|
|
||||||
// Get the art dimensions
|
// Get the art dimensions
|
||||||
|
|
|
@ -322,7 +322,7 @@ public class AlbumSongsListFragment extends AbstractAdditionalInfoFragment
|
||||||
private class AlbumSongsAdapter extends CursorAdapter {
|
private class AlbumSongsAdapter extends CursorAdapter {
|
||||||
|
|
||||||
public AlbumSongsAdapter(Context context) {
|
public AlbumSongsAdapter(Context context) {
|
||||||
super(context, null, false);
|
super(context, null, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -141,7 +141,7 @@ public class ArtistListFragment extends AbstractCursorListFragment {
|
||||||
private int artWidth, artHeight;
|
private int artWidth, artHeight;
|
||||||
|
|
||||||
public ArtistsAdapter(Context context) {
|
public ArtistsAdapter(Context context) {
|
||||||
super(context, null, false);
|
super(context, null, 0);
|
||||||
this.hostManager = HostManager.getInstance(context);
|
this.hostManager = HostManager.getInstance(context);
|
||||||
|
|
||||||
// Get the art dimensions
|
// Get the art dimensions
|
||||||
|
|
|
@ -131,7 +131,7 @@ public class AudioGenresListFragment extends AbstractCursorListFragment {
|
||||||
private int artWidth, artHeight;
|
private int artWidth, artHeight;
|
||||||
|
|
||||||
public AudioGenresAdapter(Context context) {
|
public AudioGenresAdapter(Context context) {
|
||||||
super(context, null, false);
|
super(context, null, 0);
|
||||||
this.hostManager = HostManager.getInstance(context);
|
this.hostManager = HostManager.getInstance(context);
|
||||||
|
|
||||||
// Get the art dimensions
|
// Get the art dimensions
|
||||||
|
|
|
@ -143,7 +143,7 @@ public class MusicVideoListFragment extends AbstractCursorListFragment {
|
||||||
private int artWidth, artHeight;
|
private int artWidth, artHeight;
|
||||||
|
|
||||||
public MusicVideosAdapter(Context context) {
|
public MusicVideosAdapter(Context context) {
|
||||||
super(context, null, false);
|
super(context, null, 0);
|
||||||
this.hostManager = HostManager.getInstance(context);
|
this.hostManager = HostManager.getInstance(context);
|
||||||
|
|
||||||
// Get the art dimensions
|
// Get the art dimensions
|
||||||
|
|
|
@ -240,7 +240,7 @@ public class SongsListFragment extends AbstractCursorListFragment {
|
||||||
private int artWidth, artHeight;
|
private int artWidth, artHeight;
|
||||||
|
|
||||||
public SongsAdapter(Context context) {
|
public SongsAdapter(Context context) {
|
||||||
super(context, null, false);
|
super(context, null, 0);
|
||||||
this.hostManager = HostManager.getInstance(context);
|
this.hostManager = HostManager.getInstance(context);
|
||||||
|
|
||||||
// Get the art dimensions
|
// Get the art dimensions
|
||||||
|
@ -321,7 +321,7 @@ public class SongsListFragment extends AbstractCursorListFragment {
|
||||||
private class AlbumSongsAdapter extends CursorAdapter {
|
private class AlbumSongsAdapter extends CursorAdapter {
|
||||||
|
|
||||||
public AlbumSongsAdapter(Context context) {
|
public AlbumSongsAdapter(Context context) {
|
||||||
super(context, null, false);
|
super(context, null, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -317,7 +317,7 @@ public class MovieListFragment extends AbstractCursorListFragment {
|
||||||
private int themeAccentColor;
|
private int themeAccentColor;
|
||||||
|
|
||||||
public MoviesAdapter(Context context) {
|
public MoviesAdapter(Context context) {
|
||||||
super(context, null, false);
|
super(context, null, 0);
|
||||||
|
|
||||||
// Get the default accent color
|
// Get the default accent color
|
||||||
Resources.Theme theme = context.getTheme();
|
Resources.Theme theme = context.getTheme();
|
||||||
|
|
|
@ -225,7 +225,7 @@ public class TVShowEpisodeListFragment extends AbstractCursorListFragment {
|
||||||
private int themeAccentColor;
|
private int themeAccentColor;
|
||||||
|
|
||||||
public SeasonsEpisodesAdapter(Context context) {
|
public SeasonsEpisodesAdapter(Context context) {
|
||||||
super(context, null, false);
|
super(context, null, 0);
|
||||||
|
|
||||||
// Get the default accent color
|
// Get the default accent color
|
||||||
Resources.Theme theme = context.getTheme();
|
Resources.Theme theme = context.getTheme();
|
||||||
|
|
|
@ -317,7 +317,7 @@ public class TVShowListFragment extends AbstractCursorListFragment {
|
||||||
inProgressColor, finishedColor;
|
inProgressColor, finishedColor;
|
||||||
|
|
||||||
public TVShowsAdapter(Context context) {
|
public TVShowsAdapter(Context context) {
|
||||||
super(context, null, false);
|
super(context, null, 0);
|
||||||
|
|
||||||
// Get the default accent color
|
// Get the default accent color
|
||||||
Resources.Theme theme = context.getTheme();
|
Resources.Theme theme = context.getTheme();
|
||||||
|
|
Loading…
Reference in New Issue