fix lint warning
This commit is contained in:
parent
0c652e4b4a
commit
f4871ffe6a
1 changed files with 2 additions and 1 deletions
|
@ -23,6 +23,7 @@ package de.luhmer.owncloudnewsreader.helper;
|
|||
|
||||
import android.content.Context;
|
||||
import android.graphics.Bitmap;
|
||||
import android.support.v4.content.ContextCompat;
|
||||
import android.support.v7.graphics.Palette;
|
||||
import android.util.Log;
|
||||
import android.widget.ImageView;
|
||||
|
@ -86,7 +87,7 @@ public class FavIconHandler {
|
|||
Feed feed = dbConn.getFeedById(AsynkTaskId);
|
||||
Palette palette = Palette.from(bitmap).generate();
|
||||
String avg = String.valueOf(
|
||||
palette.getVibrantColor(R.color.material_blue_grey_800)
|
||||
palette.getVibrantColor(ContextCompat.getColor(context, R.color.material_blue_grey_800))
|
||||
);
|
||||
feed.setAvgColour(avg);
|
||||
dbConn.updateFeed(feed);
|
||||
|
|
Loading…
Reference in a new issue