Skip to content

Commit 1102a7f

Browse files
committed
fix: 修复未混淆版本图标错误&添加愚人节版本图标
1 parent 9d8b59e commit 1102a7f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

FCL/src/main/java/com/tungsten/fcl/ui/download/RemoteVersionListAdapter.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import com.tungsten.fclcore.download.optifine.OptiFineRemoteVersion;
2626
import com.tungsten.fclcore.download.quilt.QuiltAPIRemoteVersion;
2727
import com.tungsten.fclcore.download.quilt.QuiltRemoteVersion;
28+
import com.tungsten.fclcore.util.versioning.GameVersionNumber;
2829
import com.tungsten.fcllibrary.component.FCLAdapter;
2930
import com.tungsten.fcllibrary.component.theme.ThemeEngine;
3031
import com.tungsten.fcllibrary.component.view.FCLImageButton;
@@ -137,7 +138,12 @@ else if (remoteVersion instanceof GameRemoteVersion) {
137138
switch (remoteVersion.getVersionType()) {
138139
case RELEASE:
139140
return getContext().getDrawable(R.drawable.img_grass);
141+
case PENDING:
142+
case UNOBFUSCATED:
140143
case SNAPSHOT:
144+
if (GameVersionNumber.asGameVersion(remoteVersion.getGameVersion()).isAprilFools()) {
145+
return getContext().getDrawable(R.drawable.april_fools);
146+
}
141147
return getContext().getDrawable(R.drawable.img_command);
142148
default:
143149
return getContext().getDrawable(R.drawable.img_craft_table);
@@ -152,6 +158,7 @@ private String getTag(RemoteVersion remoteVersion) {
152158
switch (remoteVersion.getVersionType()) {
153159
case RELEASE:
154160
return getContext().getString(R.string.version_game_release);
161+
case UNOBFUSCATED:
155162
case SNAPSHOT:
156163
return getContext().getString(R.string.version_game_snapshot);
157164
default:
5.42 KB
Loading

0 commit comments

Comments
 (0)