Skip to content

Commit e4731c7

Browse files
committed
fix: 版本图标显示错误
1 parent 3c64a30 commit e4731c7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

FCL/src/main/java/com/tungsten/fcl/game/FCLGameRepository.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ public class FCLGameRepository extends DefaultGameRepository {
7575

7676
public final EventManager<Event> onVersionIconChanged = new EventManager<>();
7777

78-
private Map<Integer,Drawable> drawableMap = new HashMap<>();
79-
8078
public FCLGameRepository(Profile profile, File baseDirectory) {
8179
super(baseDirectory);
8280
this.profile = profile;
@@ -294,8 +292,7 @@ else if (analyze.has(LibraryAnalyzer.LibraryType.QUILT))
294292
}
295293

296294
private Drawable getDrawable(int id) {
297-
if (!drawableMap.containsKey(id)) drawableMap.put(id, AppCompatResources.getDrawable(FCLPath.CONTEXT,id));
298-
return drawableMap.get(id);
295+
return AppCompatResources.getDrawable(FCLPath.CONTEXT, id);
299296
}
300297

301298
public boolean saveVersionSetting(String id) {

0 commit comments

Comments
 (0)