Check settings while try showing gallery page count

This commit is contained in:
seven332 committed 2018-09-17 11:34:32 +08:00
1 parent e847338ef4
commit f0cd92f82e
1 file changed
+1 -1
@@ -178,7 +178,7 @@ abstract class GalleryAdapter extends RecyclerView.Adapter<GalleryHolder> {
category.setBackgroundColor(EhUtils.getCategoryColor(gi.category));
}
holder.posted.setText(gi.posted);
if (gi.pages == 0) {
if (gi.pages == 0 || !Settings.getShowGalleryPages()) {
holder.pages.setText(null);
RelativeLayout.LayoutParams lp = (RelativeLayout.LayoutParams) holder.simpleLanguage.getLayoutParams();
lp.addRule(RelativeLayout.LEFT_OF, 0);