mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-25 14:26:13 +03:00
fix one line note content preview
This commit is contained in:
parent
a3f157223f
commit
62487adeae
1 changed files with 1 additions and 5 deletions
|
@ -100,11 +100,7 @@ public class NoteUtil {
|
|||
content = content.substring(trimmedTitle.length());
|
||||
}
|
||||
}
|
||||
if (content.contains("\n")) {
|
||||
return truncateString(content.trim(), 200).replace("\n", EXCERPT_LINE_SEPARATOR);
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
return truncateString(content.trim(), 200).replace("\n", EXCERPT_LINE_SEPARATOR);
|
||||
}
|
||||
|
||||
@NonNull
|
||||
|
|
Loading…
Reference in a new issue