try fix NPE in ChatMessageCell

This commit is contained in:
luvletter2333 2022-07-26 12:04:19 +08:00
parent 383be2281f
commit 93a286ba44
No known key found for this signature in database
GPG Key ID: A26A8880836E1978

View File

@ -16010,6 +16010,9 @@ public class ChatMessageCell extends BaseCell implements SeekBar.SeekBarDelegate
}
public int getCurrentBackgroundLeft() {
if (currentBackgroundDrawable == null) {
return 0;
}
int left = currentBackgroundDrawable.getBounds().left;
if (!currentMessageObject.isOutOwner() && transitionParams.changePinnedBottomProgress != 1 && (!mediaBackground && !drawPinnedBottom)) {
left -= AndroidUtilities.dp(6);