Use long for ids

This commit is contained in:
Jannis Mattheis
2020-06-24 18:52:48 +02:00
parent 4edaa1943f
commit b3b1e47cff
10 changed files with 64 additions and 52 deletions

View File

@@ -32,7 +32,7 @@ public class PicassoHandler {
private Cache picassoCache;
private Picasso picasso;
private Map<Integer, String> appIdToAppImage = new ConcurrentHashMap<>();
private Map<Long, String> appIdToAppImage = new ConcurrentHashMap<>();
public PicassoHandler(Context context, Settings settings) {
this.context = context;
@@ -53,7 +53,7 @@ public class PicassoHandler {
return new Picasso.Builder(context).downloader(downloader).build();
}
public Bitmap getIcon(Integer appId) {
public Bitmap getIcon(Long appId) {
if (appId == -1) {
return BitmapFactory.decodeResource(context.getResources(), R.drawable.gotify);
}