From a2bd11b661016cec9c38a3fcdfd2706d46b442f7 Mon Sep 17 00:00:00 2001 From: EmArrow Date: Thu, 27 Jun 2024 19:36:12 +0800 Subject: [PATCH] [6.5.0] random change --- .../eagle/core/function/view/RoadCrossRoamListAdapter.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/view/RoadCrossRoamListAdapter.kt b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/view/RoadCrossRoamListAdapter.kt index 4549e9f24f..370d8f7ab0 100644 --- a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/view/RoadCrossRoamListAdapter.kt +++ b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/view/RoadCrossRoamListAdapter.kt @@ -1,6 +1,7 @@ package com.mogo.eagle.core.function.view import android.content.Context +import android.util.Log import android.view.LayoutInflater import android.view.View import android.view.ViewGroup @@ -40,12 +41,14 @@ class RoadCrossRoamListAdapter(private val mContext: Context) : RecyclerView.Ad holder.progressBar.visibility = View.VISIBLE holder.checkIcon.visibility = View.GONE - val r = Random.nextInt(1,6) + val r0 = Random.nextInt(0,3) + val r1 = Random.nextInt(1,9) + Log.i("emArrow","random:${r0 * 1000L + r1 * 100L}") // 模拟加载完成 holder.itemView.postDelayed({ holder.progressBar.visibility = View.GONE holder.checkIcon.visibility = View.VISIBLE - },r * 1000L) + },r0 * 1000L + r1 * 100L) // } else { // holder.progressBar.visibility = View.GONE // holder.checkIcon.visibility = View.VISIBLE