Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68476c5e authored by Matthias Yzusqui's avatar Matthias Yzusqui Committed by Joey
Browse files

Eleven: fix genres not updating for subsequent albums

use restartLoader as subsequent calls to initLoader will reuse the
previous loader and its data (i.e. previous queried genre).

Change-Id: I6761f6aeb61d066aec0876062f3da88cce0b56a5
parent 924c7f34
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ public class GenreFetcher implements LoaderCallbacks<Cursor> {

    public static void fetch(FragmentActivity activity, int songId, TextView textView) {
        LoaderManager lm = activity.getSupportLoaderManager();
        lm.initLoader(0, null, new GenreFetcher(activity, songId, textView));
        lm.restartLoader(0, null, new GenreFetcher(activity, songId, textView));
    }

    private GenreFetcher(Context context, int songId, TextView textView) {