mirror of
https://github.com/wrwrabbit/Partisan-Telegram-Android.git
synced 2026-05-08 01:51:27 +00:00
Bug fixes
This commit is contained in:
parent
adbe66c860
commit
fa1734518d
6 changed files with 27 additions and 13 deletions
|
|
@ -468,13 +468,11 @@ public class MessageObject {
|
|||
FileLog.e("tmessages", e);
|
||||
}
|
||||
|
||||
int linesMaxWidth;
|
||||
int linesMaxWidth = (int)Math.ceil(lastLine);
|
||||
int lastLineWidthWithLeft;
|
||||
int linesMaxWidthWithLeft;
|
||||
boolean hasNonRTL = false;
|
||||
|
||||
linesMaxWidth = (int)Math.ceil(lastLine);
|
||||
|
||||
if (a == blocksCount - 1) {
|
||||
lastLineWidth = linesMaxWidth;
|
||||
}
|
||||
|
|
@ -494,6 +492,13 @@ public class MessageObject {
|
|||
lineWidth = 0;
|
||||
}
|
||||
|
||||
if (lineWidth > maxWidth + 100) {
|
||||
int start = block.textLayout.getLineStart(n);
|
||||
int end = block.textLayout.getLineEnd(n);
|
||||
CharSequence text = block.textLayout.getText().subSequence(start, end);
|
||||
continue;
|
||||
}
|
||||
|
||||
try {
|
||||
lineLeft = block.textLayout.getLineLeft(n);
|
||||
} catch (Exception e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue