From 75014598ed76e9cf95423a2456f2823380de3698 Mon Sep 17 00:00:00 2001 From: yezhiqiu <983577727@qq.com> Date: Fri, 30 Jan 2026 11:19:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=86=E4=BA=AB=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E8=BF=98=E5=8F=AF=E4=BB=A5=E7=9B=B4=E6=92=AD=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 2 +- .../tracker/ui/fragment/map/MapV3Fragment.kt | 23 +++++++++++-------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 17bf419..1027656 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -30,7 +30,7 @@ android { targetSdkVersion 35 versionCode 2106 // versionName "2.1.6" - versionName "2.1.6-Beta1" + versionName "2.1.6-Beta3" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" diff --git a/app/src/main/java/com/abbidot/tracker/ui/fragment/map/MapV3Fragment.kt b/app/src/main/java/com/abbidot/tracker/ui/fragment/map/MapV3Fragment.kt index e327dec..7087aed 100644 --- a/app/src/main/java/com/abbidot/tracker/ui/fragment/map/MapV3Fragment.kt +++ b/app/src/main/java/com/abbidot/tracker/ui/fragment/map/MapV3Fragment.kt @@ -551,10 +551,6 @@ class MapV3Fragment : BaseFragment(FragmentMapV3Binding::i R.color.grey_color } tvHomeMapLiveTitle.setTextColor(ContextCompat.getColor(mContext!!, tColor)) - val share = MMKVUtil.getInt(MMKVKey.Shared) - if (share != ConstantInt.NoShare) { - homeMapLiveBtn.visibility = View.GONE - } ivHomeMapLiveImage.let { val bg = if (canLive) { @@ -576,12 +572,19 @@ class MapV3Fragment : BaseFragment(FragmentMapV3Binding::i private fun setMapDeviceBean(mapDeviceBean: MapDeviceBean) { mapDeviceBean.apply { - //分钟后无上报、没有lte信号或在wifi中隐藏直播按钮 - isCanLive = - !(Util.isTimeoutReport(updateTime) || powerSwitch == ConstantInt.Type0 || powerSwitch == ConstantInt.Type2 || powerSwitch == ConstantInt.Type3 || inWifiZone == ConstantInt.Type1) - setLiveBtnState(isCanLive) - mViewBinding.homeMapLiveBtn.visibility = if (liveFlag == ConstantInt.Type1) View.GONE - else View.VISIBLE + val share = MMKVUtil.getInt(MMKVKey.Shared) + mViewBinding.homeMapLiveBtn.visibility = if (share != ConstantInt.NoShare) { + View.GONE + } else { + if (liveFlag == ConstantInt.Type1) View.GONE + else { + //分钟后无上报、没有lte信号或在wifi中隐藏直播按钮 + isCanLive = + !(Util.isTimeoutReport(updateTime) || powerSwitch == ConstantInt.Type0 || powerSwitch == ConstantInt.Type2 || powerSwitch == ConstantInt.Type3 || inWifiZone == ConstantInt.Type1) + setLiveBtnState(isCanLive) + View.VISIBLE + } + } mViewBinding.ilHomeMapDeviceBatteryLayout.let { mMapViewModel.setMapDeviceBattery(