1、统一了entrance
2、统一了部分跳转intent,传参返回intent 3、修改出dialogfragment 4、clipboardmanager等处理
This commit is contained in:
@ -2,7 +2,6 @@ package com.gh.common.util;
|
||||
|
||||
import android.app.Dialog;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.graphics.Color;
|
||||
import android.support.v4.content.ContextCompat;
|
||||
import android.text.TextUtils;
|
||||
@ -10,7 +9,6 @@ import android.view.View;
|
||||
import android.view.Window;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import com.gh.base.AppController;
|
||||
import com.gh.gamecenter.*;
|
||||
import com.gh.gamecenter.adapter.MessageDetailAdapter;
|
||||
import com.gh.gamecenter.db.CommentDao;
|
||||
@ -105,12 +103,7 @@ public class CommentUtils {
|
||||
if (mCallBackListener != null) {
|
||||
mCallBackListener.showSoftInput(commentEntity);
|
||||
} else if (!TextUtils.isEmpty(newsId)) {
|
||||
Intent intent = new Intent(mContext, MessageDetailActivity.class);
|
||||
AppController.put("CommentEntity", commentEntity);
|
||||
intent.putExtra("commentNum", -1);
|
||||
intent.putExtra("newsId", newsId);
|
||||
intent.putExtra("openSoftInput", true);
|
||||
mContext.startActivity(intent);
|
||||
mContext.startActivity(MessageDetailActivity.getMessageDetailIntent(mContext, commentEntity, newsId));
|
||||
} else {
|
||||
Utils.toast(mContext, "缺少关键属性");
|
||||
}
|
||||
@ -123,13 +116,9 @@ public class CommentUtils {
|
||||
showReportTypeDialog(commentEntity, mContext);
|
||||
break;
|
||||
case "查看对话":
|
||||
Intent intent = new Intent(mContext, CommentDetailActivity.class);
|
||||
intent.putExtra("commentId", commentEntity.getId());
|
||||
mContext.startActivity(intent);
|
||||
mContext.startActivity(CommentDetailActivity.getCommentDetailIntent(mContext, commentEntity.getId()));
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user