Commit ae0052e4 authored by wanglei's avatar wanglei

...

parent ef0e68be
...@@ -16,7 +16,6 @@ object InstallHelps { ...@@ -16,7 +16,6 @@ object InstallHelps {
fun init() { fun init() {
val referrerClient = InstallReferrerClient.newBuilder(MyApplication.context).build() val referrerClient = InstallReferrerClient.newBuilder(MyApplication.context).build()
referrerClient.startConnection(object : InstallReferrerStateListener { referrerClient.startConnection(object : InstallReferrerStateListener {
override fun onInstallReferrerSetupFinished(responseCode: Int) { override fun onInstallReferrerSetupFinished(responseCode: Int) {
...@@ -31,7 +30,7 @@ object InstallHelps { ...@@ -31,7 +30,7 @@ object InstallHelps {
obj.put("appInstallTime", response.installBeginTimestampSeconds) obj.put("appInstallTime", response.installBeginTimestampSeconds)
obj.put("instantExperienceLaunched", installInfo.toString()) obj.put("instantExperienceLaunched", installInfo.toString())
EventUtils.event("install_referrer", ext = obj, isSingleEvent = true) EventUtils.event("install_referrer", ext = obj, isSingleEvent = true)
AppPreferences.getInstance().put("referrer", response.installReferrer) AppPreferences.getInstance().put("referrerUrl", response.installReferrer)
if (listOf( if (listOf(
"gclid", "gclid",
"facebook", "facebook",
......
...@@ -79,15 +79,19 @@ class DocumentPageFragment() : BaseFragment<FragmentDocumentPageBinding>(), Docu ...@@ -79,15 +79,19 @@ class DocumentPageFragment() : BaseFragment<FragmentDocumentPageBinding>(), Docu
launch(Dispatchers.Main) { launch(Dispatchers.Main) {
binding.llEmpty.isVisible = arrayList.isEmpty() binding.llEmpty.isVisible = arrayList.isEmpty()
val flag = AdmobHelper.isShowRvNativeAd()
LogEx.logDebug(TAG, "isShowRvNativeAd flag=$flag")
if (arrayList.isEmpty()) { if (arrayList.isEmpty()) {
binding.flAd.visibility = View.VISIBLE binding.flAd.visibility = View.VISIBLE
if (AdmobHelper.isShowRvNativeAd()) {
if (flag) {
AdmobNativeUtils.showNativeAd(requireActivity(), binding.flAd, R.layout.layout_admob_document) AdmobNativeUtils.showNativeAd(requireActivity(), binding.flAd, R.layout.layout_admob_document)
} }
} else { } else {
binding.flAd.visibility = View.GONE binding.flAd.visibility = View.GONE
if (AdmobHelper.isShowRvNativeAd()) { if (flag) {
arrayList.add(1, DocumentBean().apply { isAd = true }) arrayList.add(1, DocumentBean().apply { isAd = true })
} }
} }
......
...@@ -24,7 +24,6 @@ class SplashPresenter( ...@@ -24,7 +24,6 @@ class SplashPresenter(
* 超时跳转 * 超时跳转
*/ */
fun startJumpJob(lifecycleCoroutineScope: LifecycleCoroutineScope) { fun startJumpJob(lifecycleCoroutineScope: LifecycleCoroutineScope) {
loadingTime = 15
if (ConstObject.ifAgreePrivacy && startJumpJob) { if (ConstObject.ifAgreePrivacy && startJumpJob) {
if (jumpJob == null) { if (jumpJob == null) {
val startTime = System.currentTimeMillis() val startTime = System.currentTimeMillis()
......
...@@ -11,7 +11,7 @@ object LogEx { ...@@ -11,7 +11,7 @@ object LogEx {
"DocumentFragment", "DocumentFragment",
"EventUtils", "EventUtils",
"ReportUtils", "ReportUtils",
"NewComUtils", // "NewComUtils",
) )
fun logDebug(tag: String, content: String, isMust: Boolean = false) { fun logDebug(tag: String, content: String, isMust: Boolean = false) {
......
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