diff --git a/app/src/main/java/com/hippo/ehviewer/client/parser/GalleryDetailParser.java b/app/src/main/java/com/hippo/ehviewer/client/parser/GalleryDetailParser.java index 462c92b52..6c81fe22f 100644 --- a/app/src/main/java/com/hippo/ehviewer/client/parser/GalleryDetailParser.java +++ b/app/src/main/java/com/hippo/ehviewer/client/parser/GalleryDetailParser.java @@ -91,8 +91,6 @@ public class GalleryDetailParser { private static final DateFormat WEB_COMMENT_DATE_FORMAT = new SimpleDateFormat("dd MMMMM yyyy, HH:mm", Locale.US); - private static Integer EhSite; - static { WEB_COMMENT_DATE_FORMAT.setTimeZone(TimeZone.getTimeZone("UTC")); } @@ -662,23 +660,11 @@ public static int parsePages(String body) throws ParseException { } public static PreviewSet parsePreviewSet(Document d, String body) { - if (null == EhSite) { - EhSite = Settings.getGallerySite(); - } + String previewClass; - switch (EhSite) { - case 0: - previewClass = body; - break; - case 1: - previewClass = d.getElementsByClass("gt200").html(); - if (previewClass.isEmpty()) { - previewClass = d.getElementsByClass("gt100").html(); - } - break; - default: - previewClass = ""; - break; + previewClass = d.getElementsByClass("gt200").html(); + if (previewClass.isEmpty()) { + previewClass = d.getElementsByClass("gt100").html(); } PreviewSet previewSet; try {