mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-11 14:47:11 +00:00
Debug improvement
This commit is contained in:
parent
8027626bab
commit
2b162efdfb
1 changed files with 6 additions and 1 deletions
|
@ -2356,7 +2356,12 @@ public class Helper {
|
|||
// https://issuetracker.google.com/issues/37054851
|
||||
|
||||
static String getPrintableString(String value, boolean debug) {
|
||||
if (TextUtils.isEmpty(value))
|
||||
if (debug) {
|
||||
if (value == null)
|
||||
return "<null>";
|
||||
if (TextUtils.isEmpty(value))
|
||||
return "<empty>";
|
||||
} else
|
||||
return value;
|
||||
StringBuilder result = new StringBuilder();
|
||||
for (int i = 0; i < value.length(); ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue