Commit ae0052e4 authored by wanglei's avatar wanglei

...

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