Commit 66bf6259 authored by leichao.gao's avatar leichao.gao

update

parent 5eb327c4
...@@ -32,6 +32,7 @@ abstract class BaseActivity<T : ViewBinding> : AppCompatActivity() { ...@@ -32,6 +32,7 @@ abstract class BaseActivity<T : ViewBinding> : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
EventUtils.event("page_${javaClass.simpleName}")
launcher = ActivityLauncher(this) launcher = ActivityLauncher(this)
setContentView(binding.root) setContentView(binding.root)
isLightMode?.let { isLightMode?.let {
...@@ -41,7 +42,6 @@ abstract class BaseActivity<T : ViewBinding> : AppCompatActivity() { ...@@ -41,7 +42,6 @@ abstract class BaseActivity<T : ViewBinding> : AppCompatActivity() {
ActivityManagerUtils.getInstance().addActivity(this) ActivityManagerUtils.getInstance().addActivity(this)
initView() initView()
initListener() initListener()
EventUtils.event("page_${javaClass.simpleName}")
} }
protected abstract fun initView() protected abstract fun initView()
......
...@@ -83,7 +83,7 @@ public class AdDisplayUtils { ...@@ -83,7 +83,7 @@ public class AdDisplayUtils {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
try { try {
jsonObject.put("reason", "shouldDisplayAd"); jsonObject.put("reason", "shouldDisplayAd");
EventUtils.INSTANCE.event("ad_show_errron", "", jsonObject, false); EventUtils.INSTANCE.event("ad_show_error", "", jsonObject, false);
} catch (JSONException e) { } catch (JSONException e) {
} }
} }
...@@ -91,7 +91,7 @@ public class AdDisplayUtils { ...@@ -91,7 +91,7 @@ public class AdDisplayUtils {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
try { try {
jsonObject.put("reason", "shouldIncrementClickCount"); jsonObject.put("reason", "shouldIncrementClickCount");
EventUtils.INSTANCE.event("ad_show_errron", "", jsonObject, false); EventUtils.INSTANCE.event("ad_show_error", "", jsonObject, false);
} catch (JSONException e) { } catch (JSONException e) {
} }
} }
...@@ -99,7 +99,7 @@ public class AdDisplayUtils { ...@@ -99,7 +99,7 @@ public class AdDisplayUtils {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
try { try {
jsonObject.put("reason", "shouldIncrementClickCount"); jsonObject.put("reason", "shouldIncrementClickCount");
EventUtils.INSTANCE.event("ad_show_errron", "", jsonObject, false); EventUtils.INSTANCE.event("ad_show_error", "", jsonObject, false);
} catch (JSONException e) { } catch (JSONException e) {
} }
} }
...@@ -107,7 +107,7 @@ public class AdDisplayUtils { ...@@ -107,7 +107,7 @@ public class AdDisplayUtils {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
try { try {
jsonObject.put("reason", "shouldSendAdRequest"); jsonObject.put("reason", "shouldSendAdRequest");
EventUtils.INSTANCE.event("ad_show_errron", "", jsonObject, false); EventUtils.INSTANCE.event("ad_show_error", "", jsonObject, false);
} catch (JSONException e) { } catch (JSONException e) {
} }
} }
......
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