Add final artwork and correctly read colours.

Carrie specified colours earlier, and they were added to the code.
However they were not being read correctly. This changes that so that
lowercase resource names (e.g. "category_games") are used instead.

It also adds the final category artwork, for "Games" which was
missed prior.

The rest still generate colours and patterns if they don't have a colour
or an image specified.
This commit is contained in:
Peter Serwylo 2017-06-08 17:24:12 +10:00
parent 701d927e7a
commit 5b6e515a06
2 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ public class CategoryController extends RecyclerView.ViewHolder implements Loade
}
public static int getBackgroundColour(Context context, @NonNull String categoryName) {
int colourId = getCategoryResource(context, categoryName, "color", false);
int colourId = getCategoryResource(context, categoryName, "color", true);
if (colourId > 0) {
return ContextCompat.getColor(context, colourId);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB