Commit 392d23b1 by fengquan

feat: 倾诉列表搜索添加埋点

parent 0f18b65c
...@@ -13,6 +13,7 @@ import android.widget.TextView ...@@ -13,6 +13,7 @@ import android.widget.TextView
import com.ydl.confide.R import com.ydl.confide.R
import com.ydl.confide.home.constants.FinalString import com.ydl.confide.home.constants.FinalString
import com.ydl.ydlcommon.base.BaseActivity import com.ydl.ydlcommon.base.BaseActivity
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import kotlinx.android.synthetic.main.confide_search_activity.* import kotlinx.android.synthetic.main.confide_search_activity.*
...@@ -30,6 +31,8 @@ class ConfideSearchActivity : BaseActivity() { ...@@ -30,6 +31,8 @@ class ConfideSearchActivity : BaseActivity() {
etSearch.setOnEditorActionListener { _, actionId, _ -> etSearch.setOnEditorActionListener { _, actionId, _ ->
if (actionId == EditorInfo.IME_ACTION_SEARCH) { if (actionId == EditorInfo.IME_ACTION_SEARCH) {
val keyword = etSearch!!.text.trim().toString() val keyword = etSearch!!.text.trim().toString()
//埋点
ActionCountUtils.record("listen_counselor_list_page","listen_counselor_list_search_click",keyword)
val intent = Intent() val intent = Intent()
intent.putExtra(FinalString.CONFIDE_SEARCH_KEY_WORD, keyword) intent.putExtra(FinalString.CONFIDE_SEARCH_KEY_WORD, keyword)
setResult(RESULT_OK,intent) setResult(RESULT_OK,intent)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment