Merge branch 'feat/GHZSCY-6545' into 'dev'
feat: 【光环助手】神策埋点问题-帖子浏览来源入口上报缺失 https://jira.shanqu.cc/browse/GHZSCY-6545 See merge request halo/android/assistant-android!1846
This commit is contained in:
@ -72,7 +72,6 @@ android_build:
|
||||
only:
|
||||
- dev
|
||||
- release
|
||||
- feat/GHZSCY-6578
|
||||
|
||||
# 代码检查
|
||||
sonarqube_analysis:
|
||||
@ -157,5 +156,4 @@ oss-upload&send-email:
|
||||
- /usr/local/bin/python /ci-android-mail-jira-comment.py
|
||||
only:
|
||||
- dev
|
||||
- release
|
||||
- feat/GHZSCY-6578
|
||||
- release
|
||||
@ -137,7 +137,7 @@ public class AnswerAdapter extends ListAdapter<AnswerEntity> implements ISyncAda
|
||||
holder.itemView.setOnClickListener(v -> {
|
||||
if (mCurrentOption == ManageOption.OPTION_MANAGER) {
|
||||
if (entity.getActive()) {
|
||||
mContext.startActivity(NewQuestionDetailActivity.getCommentIntent(mContext, entity.getQuestions().getId(), entity.getId(), mEntrance, path));
|
||||
mContext.startActivity(NewQuestionDetailActivity.getCommentIntent(mContext, entity.getQuestions().getId(), entity.getId(), mEntrance, path, ""));
|
||||
} else {
|
||||
showDeleteDialog(entity.getId());
|
||||
}
|
||||
|
||||
@ -117,7 +117,7 @@ class ForumArticleAskListAdapter(
|
||||
answerViewHolder.itemView.setOnClickListener {
|
||||
val entrance = BaseActivity.mergeEntranceAndPath(entrance, path)
|
||||
val userId = answer.user.id ?: ""
|
||||
val contentId = answer.id ?: ""
|
||||
val contentId = answer.id
|
||||
val sequence = articlePosition + 1
|
||||
val bbsType = if (answer.bbs.type == "official_bbs") "综合论坛" else "游戏论坛"
|
||||
when (answer.type) {
|
||||
@ -164,7 +164,7 @@ class ForumArticleAskListAdapter(
|
||||
holder.getKey(entrance),
|
||||
"${answer.title}(${answer.id})"
|
||||
)
|
||||
mContext.startActivity(ForumVideoDetailActivity.getIntent(mContext, answer.id ?: "", bbsId, "论坛详情-信息流"))
|
||||
mContext.startActivity(ForumVideoDetailActivity.getIntent(mContext, answer.id, bbsId, "论坛详情-信息流"))
|
||||
}
|
||||
"question" -> {
|
||||
NewLogUtils.logForumDetailFeedContentClick(
|
||||
@ -206,7 +206,12 @@ class ForumArticleAskListAdapter(
|
||||
)
|
||||
mContext.startActivity(
|
||||
NewQuestionDetailActivity.getCommentIntent(
|
||||
mContext, answer.questions.id, answer.id, entrance, path
|
||||
mContext,
|
||||
answer.questions.id,
|
||||
answer.id,
|
||||
entrance,
|
||||
path,
|
||||
sourceEntrance = "论坛详情-信息流"
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
@ -486,7 +486,7 @@ class ForumArticleAskItemViewHolder(
|
||||
val intent = ArticleDetailActivity.getCommentIntent(
|
||||
itemView.context,
|
||||
CommunityEntity(communityId, entity.communityName ?: ""),
|
||||
entity.id ?: "",
|
||||
entity.id,
|
||||
entrance, ""
|
||||
)
|
||||
itemView.context.startActivity(intent)
|
||||
@ -497,8 +497,7 @@ class ForumArticleAskItemViewHolder(
|
||||
val communityId = entity.community.id
|
||||
itemView.context.startActivity(
|
||||
ForumVideoDetailActivity.getIntent(
|
||||
itemView.context, entity.id
|
||||
?: "", communityId, true
|
||||
itemView.context, entity.id, communityId, true
|
||||
)
|
||||
)
|
||||
}
|
||||
@ -522,8 +521,9 @@ class ForumArticleAskItemViewHolder(
|
||||
NewQuestionDetailActivity.getCommentIntent(
|
||||
it.context,
|
||||
entity.questions.id,
|
||||
entity.id ?: "",
|
||||
entity.id,
|
||||
entrance,
|
||||
"",
|
||||
""
|
||||
)
|
||||
)
|
||||
|
||||
@ -199,7 +199,8 @@ class ForumArticleListAdapter(
|
||||
articleEntity.recommendId,
|
||||
mEntrance,
|
||||
path,
|
||||
true
|
||||
true,
|
||||
sourceEntrance = "社区-推荐信息流"
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
@ -128,7 +128,8 @@ class FollowActivityResultLauncher(
|
||||
context,
|
||||
input.historyEntity.id,
|
||||
"",
|
||||
UserHistoryFragment.PATH_USER_QUESTION_ANSWER
|
||||
UserHistoryFragment.PATH_USER_QUESTION_ANSWER,
|
||||
sourceEntrance = "关注-论坛动态"
|
||||
)
|
||||
} else {
|
||||
if (input.answerEntity?.type == "question") {
|
||||
@ -144,7 +145,8 @@ class FollowActivityResultLauncher(
|
||||
input.answerEntity?.questions?.id ?: "",
|
||||
input.answerEntity?.answerId ?: "",
|
||||
"",
|
||||
""
|
||||
"",
|
||||
sourceEntrance = "关注-论坛动态",
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@ -113,7 +113,8 @@ class FollowPostCardViewHolder(
|
||||
articleEntity.recommendId,
|
||||
"",
|
||||
path,
|
||||
true
|
||||
true,
|
||||
sourceEntrance = "社区-关注"
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
@ -201,7 +201,7 @@ class ForumContentSearchListAdapter(
|
||||
mContext.startActivity(
|
||||
ForumVideoDetailActivity.getIntent(
|
||||
mContext,
|
||||
answer.id ?: "",
|
||||
answer.id,
|
||||
answer.bbs.id,
|
||||
sourceEntrance = "社区-搜索-内容榜单"
|
||||
)
|
||||
@ -309,8 +309,9 @@ class ForumContentSearchListAdapter(
|
||||
mContext.startActivity(
|
||||
ForumVideoDetailActivity.getIntent(
|
||||
mContext,
|
||||
answer.id ?: "",
|
||||
answer.bbs.id
|
||||
answer.id,
|
||||
answer.bbs.id,
|
||||
sourceEntrance = "社区-搜索-内容榜单"
|
||||
)
|
||||
)
|
||||
}
|
||||
@ -406,8 +407,9 @@ class ForumContentSearchListAdapter(
|
||||
mContext.startActivity(
|
||||
ForumVideoDetailActivity.getIntent(
|
||||
mContext,
|
||||
answer.id ?: "",
|
||||
answer.bbs.id
|
||||
answer.id,
|
||||
answer.bbs.id,
|
||||
sourceEntrance = "社区-搜索-内容榜单"
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
@ -71,7 +71,7 @@ open class BaseAnswerOrArticleItemViewHolder(itemView: View) : BaseRecyclerViewH
|
||||
val intent = ArticleDetailActivity.getCommentIntent(
|
||||
itemView.context,
|
||||
CommunityEntity(communityId, entity.communityName ?: ""),
|
||||
entity.id ?: "", entrance, ""
|
||||
entity.id, entrance, ""
|
||||
)
|
||||
itemView.context.startActivity(intent)
|
||||
}
|
||||
@ -250,6 +250,7 @@ open class BaseAnswerOrArticleItemViewHolder(itemView: View) : BaseRecyclerViewH
|
||||
entity.questions.id,
|
||||
entity.id,
|
||||
entrance,
|
||||
"",
|
||||
""
|
||||
)
|
||||
itemView.context.startActivity(intent)
|
||||
|
||||
@ -65,7 +65,8 @@ class ArticleDetailActivity : ToolBarActivity() {
|
||||
community: CommunityEntity,
|
||||
articleId: String,
|
||||
entrance: String,
|
||||
path: String
|
||||
path: String,
|
||||
sourceEntrance: String = "",
|
||||
): Intent {
|
||||
val intent = Intent(context, ArticleDetailActivity::class.java)
|
||||
intent.putExtra(EntranceConsts.KEY_ENTRANCE, mergeEntranceAndPath(entrance, path))
|
||||
@ -73,6 +74,7 @@ class ArticleDetailActivity : ToolBarActivity() {
|
||||
intent.putExtra(EntranceConsts.KEY_COMMUNITY_DATA, community)
|
||||
intent.putExtra(EntranceConsts.KEY_SCROLL_TO_COMMENT_AREA, true)
|
||||
intent.putExtra(EntranceConsts.KEY_PATH, path)
|
||||
intent.putExtra(EntranceConsts.KEY_SOURCE_ENTRANCE, sourceEntrance)
|
||||
return intent
|
||||
}
|
||||
|
||||
@ -106,7 +108,8 @@ class ArticleDetailActivity : ToolBarActivity() {
|
||||
articleId: String,
|
||||
topCommentId: String,
|
||||
entrance: String,
|
||||
path: String
|
||||
path: String,
|
||||
sourceEntrance: String = "",
|
||||
): Intent {
|
||||
val intent = Intent(context, ArticleDetailActivity::class.java)
|
||||
intent.putExtra(EntranceConsts.KEY_ENTRANCE, mergeEntranceAndPath(entrance, path))
|
||||
@ -115,6 +118,7 @@ class ArticleDetailActivity : ToolBarActivity() {
|
||||
intent.putExtra(EntranceConsts.KEY_SCROLL_TO_COMMENT_AREA, true)
|
||||
intent.putExtra(EntranceConsts.KEY_TOP_COMMENT_ID, topCommentId)
|
||||
intent.putExtra(EntranceConsts.KEY_PATH, path)
|
||||
intent.putExtra(EntranceConsts.KEY_SOURCE_ENTRANCE, sourceEntrance)
|
||||
return intent
|
||||
}
|
||||
}
|
||||
|
||||
@ -85,6 +85,7 @@ class ArticleDetailRelatedContentListAdapter(
|
||||
item.questions.id,
|
||||
item.id,
|
||||
entrance,
|
||||
"",
|
||||
""
|
||||
)
|
||||
it.context.startActivity(intent)
|
||||
|
||||
@ -85,7 +85,7 @@ class MyAnswerAdapter extends ListAdapter<AnswerEntity> implements ISyncAdapterH
|
||||
NewFlatLogUtils.logHaloSelfPublishContent("回答", "卡片内容");
|
||||
}
|
||||
mContext.startActivity(NewQuestionDetailActivity.getCommentIntent(mContext,
|
||||
entity.getQuestions().getId(), entity.getId() != null ? entity.getId() : "", mEntrance, "我的光环-我的问答-我的回答"));
|
||||
entity.getQuestions().getId(), entity.getId() != null ? entity.getId() : "", mEntrance, "我的光环-我的问答-我的回答", ""));
|
||||
});
|
||||
answerViewHolder.getCommentCount().setVisibility(View.INVISIBLE);
|
||||
|
||||
|
||||
@ -58,13 +58,15 @@ class NewQuestionDetailActivity : ToolBarActivity() {
|
||||
context: Context,
|
||||
questionId: String,
|
||||
entrance: String,
|
||||
path: String
|
||||
path: String,
|
||||
sourceEntrance: String = ""
|
||||
): Intent {
|
||||
val intent = Intent(context, NewQuestionDetailActivity::class.java)
|
||||
intent.putExtra(EntranceConsts.KEY_ENTRANCE, mergeEntranceAndPath(entrance, path))
|
||||
intent.putExtra(EntranceConsts.KEY_QUESTIONS_ID, questionId)
|
||||
intent.putExtra(EntranceConsts.KEY_SCROLL_TO_COMMENT_AREA, true)
|
||||
intent.putExtra(EntranceConsts.KEY_PATH, path)
|
||||
intent.putExtra(EntranceConsts.KEY_SOURCE_ENTRANCE, sourceEntrance)
|
||||
return intent
|
||||
}
|
||||
|
||||
@ -74,7 +76,8 @@ class NewQuestionDetailActivity : ToolBarActivity() {
|
||||
questionId: String,
|
||||
answerId: String,
|
||||
entrance: String,
|
||||
path: String
|
||||
path: String,
|
||||
sourceEntrance: String = ""
|
||||
): Intent {
|
||||
val intent = Intent(context, NewQuestionDetailActivity::class.java)
|
||||
intent.putExtra(EntranceConsts.KEY_ENTRANCE, mergeEntranceAndPath(entrance, path))
|
||||
@ -82,6 +85,7 @@ class NewQuestionDetailActivity : ToolBarActivity() {
|
||||
intent.putExtra(EntranceConsts.KEY_ANSWER_ID, answerId)
|
||||
intent.putExtra(EntranceConsts.KEY_SCROLL_TO_COMMENT_AREA, true)
|
||||
intent.putExtra(EntranceConsts.KEY_PATH, path)
|
||||
intent.putExtra(EntranceConsts.KEY_SOURCE_ENTRANCE, sourceEntrance)
|
||||
return intent
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user