Commit 17a53c0e authored by mengcuiguang2's avatar mengcuiguang2

代码优化

parent 4936111e
......@@ -3,6 +3,8 @@ package com.duben.xixiplaylet.manager
import android.app.Application
import android.content.Context
import com.duben.xixiplaylet.BuildConfig
import com.duben.xixiplaylet.common.Constant
import com.duben.xixiplaylet.utils.AppPreferencesManager.get
import com.duben.xixiplaylet.utils.MateUtils
import com.tendcloud.tenddata.TCAgent
......@@ -34,10 +36,17 @@ object TalkingDataManager {
}
fun onResume(cxt:Context,name:String){
// 未同意权限弹窗,不进行SDK初始化
if (get().getBoolean(Constant.LOAN_PERMISSION_FLAG, true)) return
TCAgent.onPageStart(cxt, name)
}
fun onPause(cxt:Context,name:String){
// 未同意权限弹窗,不进行SDK初始化
if (get().getBoolean(Constant.LOAN_PERMISSION_FLAG, true)) return
TCAgent.onPageEnd(cxt, name)
}
}
\ No newline at end of file
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