diff --git a/app/src/main/java/com/hippo/ehviewer/Settings.java b/app/src/main/java/com/hippo/ehviewer/Settings.java
index 5623c1fea..89e8268a5 100755
--- a/app/src/main/java/com/hippo/ehviewer/Settings.java
+++ b/app/src/main/java/com/hippo/ehviewer/Settings.java
@@ -62,6 +62,8 @@ public class Settings {
public static final String KEY_DETAIL_SIZE = "detail_size";
public static final String KEY_THUMB_SIZE = "thumb_size";
public static final String KEY_THUMB_RESOLUTION = "thumb_resolution";
+ private static final String KEY_SHOW_COMMENTS = "show_gallery_comments";
+ private static final boolean DEFAULT_SHOW_COMMENTS = true;
public static final String KEY_SHOW_TAG_TRANSLATIONS = "show_tag_translations";
public static final String KEY_DEFAULT_CATEGORIES = "default_categories";
public static final int DEFAULT_DEFAULT_CATEGORIES = EhUtils.ALL_CATEGORY;
@@ -557,6 +559,10 @@ public class Settings {
return getIntFromStr(KEY_THUMB_RESOLUTION, DEFAULT_THUMB_RESOLUTION);
}
+ public static boolean getShowComments() {
+ return getBoolean(KEY_SHOW_COMMENTS, DEFAULT_SHOW_COMMENTS);
+ }
+
public static boolean getRequestNews() {
return getBoolean(KEY_REQUEST_NEWS, DEFAULT_REQUEST_NEWS);
}
diff --git a/app/src/main/java/com/hippo/ehviewer/ui/scene/GalleryDetailScene.java b/app/src/main/java/com/hippo/ehviewer/ui/scene/GalleryDetailScene.java
index 75b9f1303..a2acfa565 100755
--- a/app/src/main/java/com/hippo/ehviewer/ui/scene/GalleryDetailScene.java
+++ b/app/src/main/java/com/hippo/ehviewer/ui/scene/GalleryDetailScene.java
@@ -637,8 +637,12 @@ public class GalleryDetailScene extends CollapsingToolbarScene implements View.O
mNoTags = (TextView) ViewUtils.$$(mTags, R.id.no_tags);
mComments = (LinearLayout) ViewUtils.$$(belowHeader, R.id.comments);
- mCommentsText = (TextView) ViewUtils.$$(mComments, R.id.comments_text);
- mComments.setOnClickListener(this);
+ if (Settings.getShowComments()) {
+ mCommentsText = (TextView) ViewUtils.$$(mComments, R.id.comments_text);
+ mComments.setOnClickListener(this);
+ } else {
+ mComments.setVisibility(View.GONE);
+ }
mPreviews = ViewUtils.$$(belowHeader, R.id.previews);
mGridLayout = (SimpleGridAutoSpanLayout) ViewUtils.$$(mPreviews, R.id.grid_layout);
diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml
index 1e688eeab..a42ec38a6 100755
--- a/app/src/main/res/values-zh-rCN/strings.xml
+++ b/app/src/main/res/values-zh-rCN/strings.xml
@@ -386,6 +386,8 @@
需同时在 EHentai 网站设置中启用 Japanese Title
显示画廊页数
在画廊列表中显示页数
+ 显示画廊评论
+ 在画廊详情页中显示评论
显示标签翻译
显示翻译后的标签而非原始文字(需花费时间来下载数据文件)
补充翻译(由 EhTagTranslation 提供)
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 95b1b5beb..f2669bf57 100755
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -431,6 +431,8 @@
Require enabling Japanese Title in Settings on EHentai website
Show gallery pages
Display the number of pages in the gallery list
+ Show gallery comments
+ Show comments on the gallery details page
Show tag translations
Show tag translations instead of the original text (It takes time to download the data file)
Placeholder
diff --git a/app/src/main/res/xml/eh_settings.xml b/app/src/main/res/xml/eh_settings.xml
index 1bd576ed0..d78392283 100644
--- a/app/src/main/res/xml/eh_settings.xml
+++ b/app/src/main/res/xml/eh_settings.xml
@@ -126,6 +126,13 @@
android:title="@string/settings_eh_show_gallery_pages"
app:iconSpaceReserved="false" />
+
+