Skip to content

Commit

Permalink
Fix memory leaks in lists that use CursorAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
SyncedSynapse authored and poisdeux committed Feb 26, 2018
1 parent cda70ce commit 2206b90
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ private class AlbumsAdapter extends CursorAdapter {
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ public interface AlbumSongsListQuery {
private class AlbumSongsAdapter extends CursorAdapter {

public AlbumSongsAdapter(Context context) {
super(context, null, false);
super(context, null, 0);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ private class ArtistsAdapter extends CursorAdapter {
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ private class AudioGenresAdapter extends CursorAdapter {
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ private static class MusicVideosAdapter extends CursorAdapter {
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ private class SongsAdapter extends CursorAdapter {
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
Expand Down Expand Up @@ -321,7 +321,7 @@ public void onClick(final View v) {
private class AlbumSongsAdapter extends CursorAdapter {

public AlbumSongsAdapter(Context context) {
super(context, null, false);
super(context, null, 0);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ private class MoviesAdapter extends CursorAdapter {
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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ private class SeasonsEpisodesAdapter extends CursorAdapter {
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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ private class TVShowsAdapter extends CursorAdapter {
inProgressColor, finishedColor;

public TVShowsAdapter(Context context) {
super(context, null, false);
super(context, null, 0);

// Get the default accent color
Resources.Theme theme = context.getTheme();
Expand Down

0 comments on commit 2206b90

Please sign in to comment.