Skip to content

Commit

Permalink
fx
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan09811 authored Jan 29, 2024
1 parent fb4079e commit bdb1ddf
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private static void writeChanges() {
public static void setGameIcon(Context context, String id, Bitmap icon) {
try {
String iconsFolderPath = context.getExternalFilesDir(null) + "/icons/";
FileUtils.createDir(iconsFolderPath);
FileUtils.createDir(context, iconsFolderPath);

String iconPath = iconsFolderPath + id + ".png";

Expand All @@ -95,6 +95,7 @@ public static Bitmap loadGameIcon(Context context, String id) {
}
return DEFAULT_ICON;
}



private static class DataModel {
Expand Down

0 comments on commit bdb1ddf

Please sign in to comment.