From 544bb768f10b600e417961de9f61d300e6657fce Mon Sep 17 00:00:00 2001 From: Floens Date: Sat, 23 Jul 2016 20:00:42 +0200 Subject: [PATCH] Add more info to the show post info action. --- .../chan/core/presenter/ThreadPresenter.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Clover/app/src/main/java/org/floens/chan/core/presenter/ThreadPresenter.java b/Clover/app/src/main/java/org/floens/chan/core/presenter/ThreadPresenter.java index 04e2c70a..4eabb71c 100644 --- a/Clover/app/src/main/java/org/floens/chan/core/presenter/ThreadPresenter.java +++ b/Clover/app/src/main/java/org/floens/chan/core/presenter/ThreadPresenter.java @@ -628,11 +628,17 @@ public class ThreadPresenter implements ChanLoader.ChanLoaderCallback, PostAdapt String text = ""; if (post.hasImage) { - text += "File: " + post.filename + "." + post.ext + " \nDimensions: " + post.imageWidth + "x" - + post.imageHeight + "\nSize: " + AndroidUtils.getReadableFileSize(post.fileSize, false) + "\n\n"; + text += "Filename: " + post.filename + "." + post.ext + " \nDimensions: " + post.imageWidth + "x" + + post.imageHeight + "\nSize: " + AndroidUtils.getReadableFileSize(post.fileSize, false); + + if (post.spoiler) { + text += "\nSpoilered"; + } + + text += "\n\n"; } - text += "Time: " + post.date; + text += "Date: " + post.date; if (!TextUtils.isEmpty(post.id)) { text += "\nId: " + post.id; @@ -643,7 +649,7 @@ public class ThreadPresenter implements ChanLoader.ChanLoaderCallback, PostAdapt } if (!TextUtils.isEmpty(post.countryName)) { - text += "\nCountry: " + post.countryName; + text += "\nCountry: " + post.country + ", " + post.countryName; } if (!TextUtils.isEmpty(post.capcode)) {