Merge branch 'master' into 'master'

cleanup

See merge request core-developers/forge!4379
This commit is contained in:
Anthony Calosa
2021-04-05 02:07:51 +00:00
3 changed files with 3 additions and 7 deletions

View File

@@ -215,7 +215,7 @@ public class GuiMobile implements IGuiBase {
public void showCardList(final String title, final String message, final List<PaperCard> list) {
final Deck deck = new Deck(title + " - " + message);
deck.getMain().addAllFlat(list);
FDeckViewer.show(deck, true); //TODO: limit this to Android only?
FDeckViewer.show(deck, true);
}
@Override

View File

@@ -73,7 +73,6 @@ public class ImageCache {
private static final LoadingCache<String, Texture> cache = CacheBuilder.newBuilder()
.maximumSize(Forge.cacheSize)
.expireAfterAccess(15, TimeUnit.MINUTES)
.softValues()
.removalListener(new RemovalListener<String, Texture>() {
@Override
public void onRemoval(RemovalNotification<String, Texture> removalNotification) {

View File

@@ -116,13 +116,10 @@ public class FDeckViewer extends FScreen {
public static void show(final Deck deck0) {
show(deck0, false);
}
public static void show(final Deck deck0, boolean disposeTexture) {
public static void show(final Deck deck0, boolean noPreload) {
if (deck0 == null) { return; }
if (disposeTexture) {
/*this is called on Quest shoplist, quest rewards, quest unlock sets*/
ImageCache.disposeTexture();
} else {
if (!noPreload){
/*preload deck to cache*/
ImageCache.preloadCache(deck0);
}