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