mirror of https://github.com/NekoX-Dev/NekoX.git
try fix NPE in ChatMessageCell
This commit is contained in:
parent
383be2281f
commit
93a286ba44
|
@ -16010,6 +16010,9 @@ public class ChatMessageCell extends BaseCell implements SeekBar.SeekBarDelegate
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getCurrentBackgroundLeft() {
|
public int getCurrentBackgroundLeft() {
|
||||||
|
if (currentBackgroundDrawable == null) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
int left = currentBackgroundDrawable.getBounds().left;
|
int left = currentBackgroundDrawable.getBounds().left;
|
||||||
if (!currentMessageObject.isOutOwner() && transitionParams.changePinnedBottomProgress != 1 && (!mediaBackground && !drawPinnedBottom)) {
|
if (!currentMessageObject.isOutOwner() && transitionParams.changePinnedBottomProgress != 1 && (!mediaBackground && !drawPinnedBottom)) {
|
||||||
left -= AndroidUtilities.dp(6);
|
left -= AndroidUtilities.dp(6);
|
||||||
|
|
Loading…
Reference in New Issue