From c5d7234d927f157bf8d9d344175ffa07b2d63417 Mon Sep 17 00:00:00 2001 From: renhaoting <370797079@qq.com> Date: Sun, 4 Jan 2026 15:36:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A6=82=E6=9E=9C=E5=B7=B2=E7=BB=8F=E8=AF=86?= =?UTF-8?q?=E5=88=AB=E4=BA=86=E7=94=A8=E6=88=B7=E6=98=AF=E5=90=A6=E4=B9=B0?= =?UTF-8?q?=E9=87=8F=EF=BC=8C=E4=B8=8D=E5=9C=A8=E6=89=A7=E8=A1=8Cloop=20ch?= =?UTF-8?q?eck?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../statisticreporter/adjust/AdjustManager.kt | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/StatisticReporter/src/main/java/com/gamedog/statisticreporter/adjust/AdjustManager.kt b/StatisticReporter/src/main/java/com/gamedog/statisticreporter/adjust/AdjustManager.kt index a08303c..a14b83e 100644 --- a/StatisticReporter/src/main/java/com/gamedog/statisticreporter/adjust/AdjustManager.kt +++ b/StatisticReporter/src/main/java/com/gamedog/statisticreporter/adjust/AdjustManager.kt @@ -81,13 +81,14 @@ class AdjustManager private constructor() { enableCostDataInAttribution() onAttributionChangedListener = OnAttributionChangedListener { - handleAttributionEvent(it) } - mChecker.startPolling() } Adjust.initSdk(config) Adjust.enable() + if (!mSpHelper.hasIdentityUserType()) { + mChecker.startPolling() + } setReporter2Bill() } @@ -129,17 +130,6 @@ class AdjustManager private constructor() { //----------------------- PRIVATE ------------------------// - private fun handleAttributionEvent(attribution: AdjustAttribution) { - try { - if (mSpHelper.hasIdentityUserType()) { - return - } - mChecker.startPolling() - } catch (e: JSONException) { - e.printStackTrace() - } - } - private fun getRandomFixSourceStr(): String { val randomInt = AndroidUtil.randomInt(1, 10) return if (randomInt <= 2) "ironsource_sdk" else "applovin_max_sdk"