From 16cee5472c1b0c04d08763128adc47c25f962436 Mon Sep 17 00:00:00 2001 From: GoFly233 Date: Thu, 13 Aug 2020 20:11:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(MessageListAdapter.java):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=9B=A0=20MessageListBean=20=E4=BD=BF=E7=94=A8=20Kot?= =?UTF-8?q?lin=20=E9=87=8D=E5=86=99=E9=80=A0=E6=88=90=E7=9A=84=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tieba/api/models/{MsgBean.java => MsgBean.kt} | 0 .../tieba/post/adapters/MessageListAdapter.java | 6 ++---- 2 files changed, 2 insertions(+), 4 deletions(-) rename app/src/main/java/com/huanchengfly/tieba/api/models/{MsgBean.java => MsgBean.kt} (100%) diff --git a/app/src/main/java/com/huanchengfly/tieba/api/models/MsgBean.java b/app/src/main/java/com/huanchengfly/tieba/api/models/MsgBean.kt similarity index 100% rename from app/src/main/java/com/huanchengfly/tieba/api/models/MsgBean.java rename to app/src/main/java/com/huanchengfly/tieba/api/models/MsgBean.kt diff --git a/app/src/main/java/com/huanchengfly/tieba/post/adapters/MessageListAdapter.java b/app/src/main/java/com/huanchengfly/tieba/post/adapters/MessageListAdapter.java index 7556a7e1..3f3dc683 100644 --- a/app/src/main/java/com/huanchengfly/tieba/post/adapters/MessageListAdapter.java +++ b/app/src/main/java/com/huanchengfly/tieba/post/adapters/MessageListAdapter.java @@ -4,9 +4,7 @@ import android.app.Activity; import android.content.Context; import android.text.format.DateUtils; import android.widget.TextView; - import androidx.annotation.NonNull; - import com.bumptech.glide.request.RequestOptions; import com.huanchengfly.tieba.api.models.MessageListBean; import com.huanchengfly.tieba.post.R; @@ -72,7 +70,7 @@ public class MessageListAdapter extends CommonBaseAdapter hashMap = new HashMap<>(); hashMap.put("tid", messageInfoBean.getThreadId()); hashMap.put("spid", messageInfoBean.getPostId()); - if (messageInfoBean.getIsFloor().equals("1")) { + if (messageInfoBean.isFloor().equals("1")) { navigationHelper.navigationByData(NavigationHelper.ACTION_FLOOR, hashMap); } else { hashMap.put("pid", messageInfoBean.getPostId()); @@ -85,7 +83,7 @@ public class MessageListAdapter extends CommonBaseAdapter