如果已经识别了用户是否买量,不在执行loop check
This commit is contained in:
parent
810a8e1329
commit
c5d7234d92
|
|
@ -81,13 +81,14 @@ class AdjustManager private constructor() {
|
||||||
enableCostDataInAttribution()
|
enableCostDataInAttribution()
|
||||||
|
|
||||||
onAttributionChangedListener = OnAttributionChangedListener {
|
onAttributionChangedListener = OnAttributionChangedListener {
|
||||||
handleAttributionEvent(it)
|
|
||||||
}
|
}
|
||||||
mChecker.startPolling()
|
|
||||||
}
|
}
|
||||||
Adjust.initSdk(config)
|
Adjust.initSdk(config)
|
||||||
Adjust.enable()
|
Adjust.enable()
|
||||||
|
|
||||||
|
if (!mSpHelper.hasIdentityUserType()) {
|
||||||
|
mChecker.startPolling()
|
||||||
|
}
|
||||||
setReporter2Bill()
|
setReporter2Bill()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -129,17 +130,6 @@ class AdjustManager private constructor() {
|
||||||
|
|
||||||
|
|
||||||
//----------------------- PRIVATE ------------------------//
|
//----------------------- PRIVATE ------------------------//
|
||||||
private fun handleAttributionEvent(attribution: AdjustAttribution) {
|
|
||||||
try {
|
|
||||||
if (mSpHelper.hasIdentityUserType()) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
mChecker.startPolling()
|
|
||||||
} catch (e: JSONException) {
|
|
||||||
e.printStackTrace()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun getRandomFixSourceStr(): String {
|
private fun getRandomFixSourceStr(): String {
|
||||||
val randomInt = AndroidUtil.randomInt(1, 10)
|
val randomInt = AndroidUtil.randomInt(1, 10)
|
||||||
return if (randomInt <= 2) "ironsource_sdk" else "applovin_max_sdk"
|
return if (randomInt <= 2) "ironsource_sdk" else "applovin_max_sdk"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue