From 65692a1f09f67e5108c16381bae284a8024a97c7 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Fri, 11 Sep 2020 18:07:59 +0200 Subject: [PATCH] prefix log by a hint about sensitive information - having this is the text has the advantage that the hint is also in place when the log is already exported, editing is maybe even easier later - if needed, we can make the hint translatable at a later point, not sure, however, if this is useful as most of the log is english anyway. --- src/org/thoughtcrime/securesms/LogViewFragment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/LogViewFragment.java b/src/org/thoughtcrime/securesms/LogViewFragment.java index 724416d66..a351b0a11 100644 --- a/src/org/thoughtcrime/securesms/LogViewFragment.java +++ b/src/org/thoughtcrime/securesms/LogViewFragment.java @@ -161,7 +161,8 @@ public class LogViewFragment extends Fragment { Context context = weakContext.get(); if (context == null) return null; - return buildDescription(context) + "\n" + new Scrubber().scrub(grabLogcat()); + return "**This log may contain sensitive information. If you want to post it publicly you may examine and edit it beforehand.**\n\n" + + buildDescription(context) + "\n" + new Scrubber().scrub(grabLogcat()); } @Override