Revert Android 8 codes to support older Android phones.

Hope I didn't miss any. :)
(tested with Android Marshmallow phone with 2gb RAM and mediatek cpu)
This commit is contained in:
Anthony Calosa
2019-09-07 22:54:53 +08:00
parent c1d5cfa27e
commit a0b71d60a1
30 changed files with 81 additions and 59 deletions

View File

@@ -294,7 +294,11 @@ public class QuestEventDraft implements IQuestEvent {
int value;
final String boosterName = FModel.getMagicDb().getEditions().get(boosterSet).getName() + " Booster Pack";
value = MAP_PRICES.getOrDefault(boosterName, 395);
if (MAP_PRICES.containsKey(boosterName)) {
value = MAP_PRICES.get(boosterName);
} else {
value = 395;
}
boosterPrices += value;
@@ -514,7 +518,11 @@ public class QuestEventDraft implements IQuestEvent {
final String boosterName = booster.getName();
value = MAP_PRICES.getOrDefault(boosterName, 395);
if (MAP_PRICES.containsKey(boosterName)) {
value = MAP_PRICES.get(boosterName);
} else {
value = 395;
}
return value;
@@ -941,7 +949,11 @@ public class QuestEventDraft implements IQuestEvent {
int value;
final String boosterName = FModel.getMagicDb().getEditions().get(boosterSet).getName() + " Booster Pack";
value = MAP_PRICES.getOrDefault(boosterName, 395);
if (MAP_PRICES.containsKey(boosterName)) {
value = MAP_PRICES.get(boosterName);
} else {
value = 395;
}
entryFee += value;