Commit 53034cb0 by 徐健

删除H5返回按钮拦截,增加新用户侧滑返回拦截

parent 509e7fbb
...@@ -45,6 +45,7 @@ import com.ydl.ydlcommon.modular.ModularServiceManager; ...@@ -45,6 +45,7 @@ import com.ydl.ydlcommon.modular.ModularServiceManager;
import com.ydl.ydlcommon.utils.LogUtil; import com.ydl.ydlcommon.utils.LogUtil;
import com.ydl.ydlcommon.utils.SharedPreferencesEditor; import com.ydl.ydlcommon.utils.SharedPreferencesEditor;
import com.ydl.ydlcommon.utils.YdlBuryPointUtil; import com.ydl.ydlcommon.utils.YdlBuryPointUtil;
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils;
import com.ydl.ydlcommon.utils.log.LogHelper; import com.ydl.ydlcommon.utils.log.LogHelper;
import com.ydl.ydlcommon.view.CircleImageView; import com.ydl.ydlcommon.view.CircleImageView;
import com.ydl.ydlcommon.view.dialog.CommonDialog; import com.ydl.ydlcommon.view.dialog.CommonDialog;
...@@ -1257,10 +1258,17 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy { ...@@ -1257,10 +1258,17 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
private void showCheckAgeDialog() { private void showCheckAgeDialog() {
CommonDialog.create(getActivity()) CommonDialog.create(getActivity())
.setLeftOnclick("返回", v -> getActivity().finish()) .setLeftOnclick("返回", v -> {
.setRightClick("继续", v -> SharedPreferencesEditor.putString("chat_age_ensure_" + ImIn.INSTANCE.getUserInfo().getUid(), "ensure")) getActivity().finish();
ActionCountUtils.Companion.count("under_age_alert_page|under_age_alert_return_click");
})
.setRightClick("继续", v -> {
SharedPreferencesEditor.putString("chat_age_ensure_" + ImIn.INSTANCE.getUserInfo().getUid(), "ensure");
ActionCountUtils.Companion.count("under_age_alert_page|under_age_alert_continue_clcik");})
.setMessage("由于您未满16周岁,如需咨询需要在家长陪同下进行") .setMessage("由于您未满16周岁,如需咨询需要在家长陪同下进行")
.setCancelAble(false) .setCancelAble(false)
.show(); .show();
ActionCountUtils.Companion.count("under_age_alert_page|under_age_alert_page_visit");
} }
} }
...@@ -20,6 +20,7 @@ import android.widget.ScrollView ...@@ -20,6 +20,7 @@ import android.widget.ScrollView
import android.widget.TextView import android.widget.TextView
import com.ydl.ydlcommon.utils.SharedPreferencesEditor import com.ydl.ydlcommon.utils.SharedPreferencesEditor
import com.ydl.ydlcommon.utils.Utils import com.ydl.ydlcommon.utils.Utils
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import com.ydl.ydlcommon.view.dialog.CommonDialog import com.ydl.ydlcommon.view.dialog.CommonDialog
import com.yidianling.common.tools.RxImageTool import com.yidianling.common.tools.RxImageTool
import com.yidianling.common.tools.ToastUtil import com.yidianling.common.tools.ToastUtil
...@@ -344,6 +345,7 @@ class CollectUserInformationView( ...@@ -344,6 +345,7 @@ class CollectUserInformationView(
.setLeftOnclick("返回") { .setLeftOnclick("返回") {
backEvent() backEvent()
ensureAgeDialog!!.dismiss() ensureAgeDialog!!.dismiss()
ActionCountUtils.count("under_age_alert_page|under_age_alert_return_click")
} }
.setRightClick("继续") { .setRightClick("继续") {
SharedPreferencesEditor.putString( SharedPreferencesEditor.putString(
...@@ -352,6 +354,7 @@ class CollectUserInformationView( ...@@ -352,6 +354,7 @@ class CollectUserInformationView(
) )
sendMsgEvent(content, list) sendMsgEvent(content, list)
ensureAgeDialog!!.dismiss() ensureAgeDialog!!.dismiss()
ActionCountUtils.count("under_age_alert_page|under_age_alert_continue_clcik")
} }
.setMessage("由于您未满16周岁,如需咨询需要在家长陪同下进行") .setMessage("由于您未满16周岁,如需咨询需要在家长陪同下进行")
.setTitle_color(R.color.im_color_242424) .setTitle_color(R.color.im_color_242424)
...@@ -359,6 +362,7 @@ class CollectUserInformationView( ...@@ -359,6 +362,7 @@ class CollectUserInformationView(
} }
if (!ensureAgeDialog!!.isShowing) { if (!ensureAgeDialog!!.isShowing) {
ensureAgeDialog!!.show() ensureAgeDialog!!.show()
ActionCountUtils.count("under_age_alert_page|under_age_alert_page_visit")
} }
} }
......
...@@ -141,9 +141,9 @@ class CollectFocusActivity : BaseActivity() { ...@@ -141,9 +141,9 @@ class CollectFocusActivity : BaseActivity() {
.compose(RxUtils.resultJavaData()) .compose(RxUtils.resultJavaData())
.subscribeOn(Schedulers.newThread()) .subscribeOn(Schedulers.newThread())
.observeOn(AndroidSchedulers.mainThread()) .observeOn(AndroidSchedulers.mainThread())
.subscribe({ .subscribe({res ->
if (it.isNotEmpty()) { if (res.isNotEmpty()) {
mList.addAll(it) mList.addAll(res.filter { it.des.isNotEmpty() })
initScrollViewData() initScrollViewData()
} }
}, { }, {
......
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