重置下载按钮的文字显示优先级

This commit is contained in:
juntao
2020-12-24 10:49:49 +08:00
parent 0d9a4baf32
commit aa41fd98e8

View File

@ -129,14 +129,14 @@ public class GameUtils {
}
}
}
if (installCount != 0) {
return context.getString(R.string.launch);
if (doneCount != 0) {
return context.getString(R.string.install);
} else if (pluginCount != 0 && !SimulatorGameManager.isSimulatorGame(gameEntity)) {
return context.getString(R.string.pluggable);
} else if (updateCount != 0 && !SimulatorGameManager.isSimulatorGame(gameEntity)) {
return context.getString(R.string.update);
} else if (doneCount != 0) {
return context.getString(R.string.install);
} else if (installCount != 0) {
return context.getString(R.string.launch);
} else if (gameEntity.getVersionNumber().contains("无版号") && Config.isGameDomeSwitchOpen() && !SimulatorGameManager.isSimulatorGame(gameEntity)) {
return context.getString(R.string.attempt);
} else {