[Modify]修復公會消息bug

This commit is contained in:
wushaocheng
2023-02-28 00:06:32 +08:00
parent 39916f2c20
commit 115c897811

View File

@@ -124,7 +124,6 @@ public class MessageListPanelEx {
// 待转发消息
private IMMessage forwardMessage;
private CountDownTimer countDownTimer;
private boolean isShowAnim = false;
private OnItemClickListener listener = new OnItemClickListener() {
@Override
@@ -790,6 +789,8 @@ public class MessageListPanelEx {
private IMMessage anchor;
private boolean remote;
private boolean isShowAnim = false;
private boolean firstLoad = true;
private RequestCallback<List<IMMessage>> callback = new RequestCallbackWrapper<List<IMMessage>>() {
@Override
@@ -962,8 +963,7 @@ public class MessageListPanelEx {
int index = getApplyItemIndex(recordId);
if (index >= 0 && index < items.size()) {
messageListView.scrollToPosition(index);
messageListView.getViewTreeObserver().addOnGlobalLayoutListener(() -> {
// 默认选中第一个
messageListView.post(() -> {
RecyclerView.LayoutManager layoutManager = messageListView.getLayoutManager();
if (layoutManager != null) {
View view = layoutManager.findViewByPosition(index);
@@ -975,7 +975,7 @@ public class MessageListPanelEx {
if (frameLayout != null) {
//透明度起始为1结束时为0
ObjectAnimator animator = ObjectAnimator.ofFloat(frameLayout, "alpha", 0f, 1f);
animator.setDuration(1500);//时间1s
animator.setDuration(1000);//时间1s
animator.setRepeatCount(1);
animator.setRepeatMode(ValueAnimator.RESTART);
animator.start();