fix(MessageListAdapter.java): 修复因 MessageListBean 使用 Kotlin
重写造成的错误
This commit is contained in:
parent
e491f0a7bf
commit
16cee5472c
|
|
@ -4,9 +4,7 @@ import android.app.Activity;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.text.format.DateUtils;
|
import android.text.format.DateUtils;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.bumptech.glide.request.RequestOptions;
|
import com.bumptech.glide.request.RequestOptions;
|
||||||
import com.huanchengfly.tieba.api.models.MessageListBean;
|
import com.huanchengfly.tieba.api.models.MessageListBean;
|
||||||
import com.huanchengfly.tieba.post.R;
|
import com.huanchengfly.tieba.post.R;
|
||||||
|
|
@ -72,7 +70,7 @@ public class MessageListAdapter extends CommonBaseAdapter<MessageListBean.Messag
|
||||||
HashMap<String, String> hashMap = new HashMap<>();
|
HashMap<String, String> hashMap = new HashMap<>();
|
||||||
hashMap.put("tid", messageInfoBean.getThreadId());
|
hashMap.put("tid", messageInfoBean.getThreadId());
|
||||||
hashMap.put("spid", messageInfoBean.getPostId());
|
hashMap.put("spid", messageInfoBean.getPostId());
|
||||||
if (messageInfoBean.getIsFloor().equals("1")) {
|
if (messageInfoBean.isFloor().equals("1")) {
|
||||||
navigationHelper.navigationByData(NavigationHelper.ACTION_FLOOR, hashMap);
|
navigationHelper.navigationByData(NavigationHelper.ACTION_FLOOR, hashMap);
|
||||||
} else {
|
} else {
|
||||||
hashMap.put("pid", messageInfoBean.getPostId());
|
hashMap.put("pid", messageInfoBean.getPostId());
|
||||||
|
|
@ -85,7 +83,7 @@ public class MessageListAdapter extends CommonBaseAdapter<MessageListBean.Messag
|
||||||
contentTextView.setText(StringUtil.getEmotionContent(EmotionUtil.EMOTION_ALL_TYPE, contentTextView, messageInfoBean.getContent()));
|
contentTextView.setText(StringUtil.getEmotionContent(EmotionUtil.EMOTION_ALL_TYPE, contentTextView, messageInfoBean.getContent()));
|
||||||
TextView textView = viewHolder.getView(R.id.message_list_item_quote);
|
TextView textView = viewHolder.getView(R.id.message_list_item_quote);
|
||||||
if (type == MessageFragment.TYPE_REPLY_ME) {
|
if (type == MessageFragment.TYPE_REPLY_ME) {
|
||||||
if (messageInfoBean.getIsFloor().equals("1"))
|
if (messageInfoBean.isFloor().equals("1"))
|
||||||
textView.setText(StringUtil.getEmotionContent(EmotionUtil.EMOTION_ALL_TYPE, textView, messageInfoBean.getQuoteContent()));
|
textView.setText(StringUtil.getEmotionContent(EmotionUtil.EMOTION_ALL_TYPE, textView, messageInfoBean.getQuoteContent()));
|
||||||
else
|
else
|
||||||
textView.setText(StringUtil.getEmotionContent(EmotionUtil.EMOTION_ALL_TYPE, textView, mContext.getString(R.string.text_message_list_item_reply_my_thread, messageInfoBean.getTitle())));
|
textView.setText(StringUtil.getEmotionContent(EmotionUtil.EMOTION_ALL_TYPE, textView, mContext.getString(R.string.text_message_list_item_reply_my_thread, messageInfoBean.getTitle())));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue