Fix crash
This commit is contained in:
parent
f894de15d8
commit
31072e7095
@ -1563,6 +1563,7 @@ public class ChatMessageCell extends BaseCell implements SeekBar.SeekBarDelegate
|
||||
if (pressedBotButton != -1) {
|
||||
BotButton button = botButtons.get(pressedBotButton);
|
||||
Gson gson = new Gson();
|
||||
if (button.button != null) {
|
||||
if (!TextUtils.isEmpty(button.button.url)) {
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(getContext());
|
||||
builder.setItems(new CharSequence[]{LocaleController.getString("Copy", R.string.Copy), LocaleController.getString("CopyLink", R.string.CopyLink), LocaleController.getString("CopyDetails", R.string.CopyDetails)}, (dialogInterface, i) -> {
|
||||
@ -1611,6 +1612,7 @@ public class ChatMessageCell extends BaseCell implements SeekBar.SeekBarDelegate
|
||||
});
|
||||
builder.show();
|
||||
}
|
||||
}
|
||||
pressedBotButton = -1;
|
||||
invalidate();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user