Fix view holder truncating posts using temporary debug settings at 50 chars

This commit is contained in:
HellPie 2018-08-31 04:52:04 +02:00 committed by HellPie
parent 215b47809c
commit ff659f1ee8
1 changed files with 1 additions and 1 deletions

View File

@ -522,7 +522,7 @@ abstract class StatusBaseViewHolder extends RecyclerView.ViewHolder {
// - Trim invisible characters off the end of the 500-limited string
// - Slimmed code for saving LOCs
int keep = 50 - (dest.length() - (dend - dstart));
int keep = 500 - (dest.length() - (dend - dstart));
if(keep <= 0) return "";
if(keep >= end - start) return null; // keep original