1.修复显示所有宠物开启,切换宠物时,宠物的位置会变化bug
2.修复显示所有宠物的开关,在Map 和直播中未关联,直播页中开启/关闭,但在Map中未同步bug
This commit is contained in:
@@ -30,7 +30,7 @@ android {
|
||||
targetSdkVersion 35
|
||||
versionCode 2210
|
||||
// versionName "2.2.10"
|
||||
versionName "2.2.10-Beta2"
|
||||
versionName "2.2.10-Beta3"
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
||||
|
||||
@@ -79,6 +79,9 @@ class SelectMapTypeDialog(
|
||||
mViewBinding.cbDialogMapAllPetSwitch.isChecked = checked
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否显示按钮
|
||||
*/
|
||||
fun showAllPetSwitch(isShow: Boolean) {
|
||||
mViewBinding.llMapTypeShowAllPetSwitch.visibility = if (isShow) View.VISIBLE else View.GONE
|
||||
}
|
||||
|
||||
@@ -24,7 +24,6 @@ class SayHelloActivity : BaseActivity<ActivitySayHelloBinding>(ActivitySayHelloB
|
||||
mViewBinding.apply {
|
||||
root.setBackgroundResource(R.drawable.icon_say_hi_bg)
|
||||
if (AppUtils.isChina()) {
|
||||
|
||||
btnSayHelloLoginWechat.visibility = View.VISIBLE
|
||||
}
|
||||
setOnClickListenerViews(btnSayHelloLogin, btnSayHelloSignup, btnSayHelloLoginWechat)
|
||||
|
||||
@@ -198,7 +198,7 @@ class SplashActivity : QMUIActivity() {
|
||||
SDKInitializer.setCoordType(CoordType.GCJ02)
|
||||
|
||||
if (AppUtils.isChina()) {
|
||||
regToWx()
|
||||
// regToWx()
|
||||
} else {
|
||||
initMapbox()
|
||||
try {
|
||||
|
||||
@@ -847,7 +847,7 @@ class LiveActivityV3 : BaseActivity<ActivityLiveV3Binding>(ActivityLiveV3Binding
|
||||
lifecycleScope.launch {
|
||||
mPetList?.apply {
|
||||
mPetBean?.let { p ->
|
||||
//删除当前选中宠物
|
||||
//List删除当前选中宠物
|
||||
mHomeMapCommon.showOtherPetHeadMarker(filter { it != p }.toMutableList())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.abbidot.tracker.ui.fragment.account.cn
|
||||
|
||||
import androidx.fragment.app.Fragment
|
||||
import com.abbidot.tracker.base.BaseFragment
|
||||
import com.abbidot.tracker.databinding.FragmentAccountCnPhoneBinding
|
||||
|
||||
/**
|
||||
* A simple [Fragment] subclass.
|
||||
* Use the [AccountCnPhoneFragment.newInstance] factory method to
|
||||
* create an instance of this fragment.
|
||||
*/
|
||||
class AccountCnPhoneFragment :
|
||||
BaseFragment<FragmentAccountCnPhoneBinding>(FragmentAccountCnPhoneBinding::inflate) {
|
||||
|
||||
companion object {
|
||||
@JvmStatic
|
||||
fun newInstance() =
|
||||
AccountCnPhoneFragment().apply {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
override fun initData() {
|
||||
super.initData()
|
||||
|
||||
}
|
||||
}
|
||||
@@ -247,7 +247,7 @@ class MapV3Fragment : BaseFragment<FragmentMapV3Binding>(FragmentMapV3Binding::i
|
||||
if (null == mSelectMapTypeDialog) {
|
||||
setAllPetShow(showAllPet)
|
||||
} else {
|
||||
mSelectMapTypeDialog?.setShowAllPetSwitch(showDashed)
|
||||
mSelectMapTypeDialog?.setShowAllPetSwitch(showAllPet)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -672,6 +672,7 @@ class MapV3Fragment : BaseFragment<FragmentMapV3Binding>(FragmentMapV3Binding::i
|
||||
* 设置多宠物显示
|
||||
*/
|
||||
private fun setAllPetShow(isShow: Boolean) {
|
||||
if (isShowAllPet == isShow) return
|
||||
isShowAllPet = isShow
|
||||
MMKVUtil.putBoolean(MMKVKey.ShowAllPet, isShow)
|
||||
if (isShow) {
|
||||
@@ -719,6 +720,7 @@ class MapV3Fragment : BaseFragment<FragmentMapV3Binding>(FragmentMapV3Binding::i
|
||||
mViewBinding.ilHomeMapPetLocation.root.visibility = View.INVISIBLE
|
||||
mViewBinding.ivHomeMapBleConState.setImageResource(R.drawable.icon_map_offline)
|
||||
isCanLive = false
|
||||
isShowAllPet=false
|
||||
setRefreshLocationBtnState()
|
||||
|
||||
ViewUtil.instance.selectPetDialogShow(
|
||||
@@ -799,7 +801,8 @@ class MapV3Fragment : BaseFragment<FragmentMapV3Binding>(FragmentMapV3Binding::i
|
||||
if (isShowDashed) {
|
||||
mHomeMapCommon.addUserAndPetLine()
|
||||
}
|
||||
if (isShowAllPet) {
|
||||
if (MMKVUtil.getBoolean(MMKVKey.ShowAllPet)) {
|
||||
mSelectMapTypeDialog?.setShowAllPetSwitch(true)
|
||||
setAllPetShow(true)
|
||||
}
|
||||
}
|
||||
@@ -919,6 +922,15 @@ class MapV3Fragment : BaseFragment<FragmentMapV3Binding>(FragmentMapV3Binding::i
|
||||
View.VISIBLE
|
||||
}
|
||||
}
|
||||
//把最新经纬度更新到获取绑定宠物接口上,切换宠物数据不会有老的数据
|
||||
getHomeV2Activity()?.let { m ->
|
||||
m.getPet(false)?.let { p ->
|
||||
if (p.macID == deviceMacId) {
|
||||
p.latitude = latitude
|
||||
p.longitude = longitude
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
setRefreshLocationBtnState()
|
||||
|
||||
|
||||
@@ -6,12 +6,13 @@
|
||||
android:background="@drawable/shape16_white_color_bg"
|
||||
android:orientation="vertical"
|
||||
android:paddingTop="@dimen/dp_18"
|
||||
android:paddingBottom="@dimen/dp_6">
|
||||
android:paddingBottom="@dimen/dp_14">
|
||||
|
||||
<com.abbidot.tracker.widget.TypefaceTextView
|
||||
android:id="@+id/tv_common_dialog_title"
|
||||
style="@style/my_TextView_style"
|
||||
android:layout_marginTop="@dimen/dp_4"
|
||||
android:layout_marginHorizontal="@dimen/dp_18"
|
||||
android:layout_marginBottom="@dimen/dp_12"
|
||||
android:text="@string/txt_setting_notification"
|
||||
android:textSize="@dimen/textSize24"
|
||||
@@ -22,6 +23,7 @@
|
||||
android:id="@+id/tv_common_dialog_content"
|
||||
style="@style/my_TextView_style"
|
||||
android:layout_marginTop="@dimen/dp_4"
|
||||
android:layout_marginHorizontal="@dimen/dp_18"
|
||||
android:text="@string/txt_view_access"
|
||||
android:textColor="@color/select_color3"
|
||||
android:textSize="@dimen/textSize14"
|
||||
@@ -33,7 +35,7 @@
|
||||
android:layout_height="@dimen/dp_42"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="@dimen/dp_24"
|
||||
android:layout_marginBottom="@dimen/dp_2"
|
||||
android:layout_marginBottom="@dimen/dp_8"
|
||||
android:gravity="center"
|
||||
android:minWidth="@dimen/dp_140"
|
||||
android:paddingHorizontal="@dimen/dp_28"
|
||||
@@ -49,7 +51,8 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:background="@drawable/selector_transparent_pressed"
|
||||
android:padding="@dimen/dp_12"
|
||||
android:paddingHorizontal="@dimen/dp_12"
|
||||
android:paddingVertical="@dimen/dp_6"
|
||||
android:text="@string/txt_later"
|
||||
android:textColor="@color/select_color"
|
||||
android:textSize="@dimen/textSize14"
|
||||
|
||||
@@ -6,11 +6,12 @@
|
||||
android:background="@drawable/shape16_white_color_bg"
|
||||
android:orientation="vertical"
|
||||
android:paddingTop="@dimen/dp_18"
|
||||
android:paddingBottom="@dimen/dp_6">
|
||||
android:paddingBottom="@dimen/dp_14">
|
||||
|
||||
<com.abbidot.tracker.widget.TypefaceTextView
|
||||
android:id="@+id/tv_common_dialog2_title"
|
||||
style="@style/my_TextView_style"
|
||||
android:layout_marginHorizontal="@dimen/dp_18"
|
||||
android:layout_marginTop="@dimen/dp_4"
|
||||
android:text="@string/txt_upgrade_unlock"
|
||||
android:textSize="@dimen/textSize14"
|
||||
@@ -24,7 +25,7 @@
|
||||
android:layout_height="@dimen/dp_45"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="@dimen/dp_18"
|
||||
android:layout_marginBottom="@dimen/dp_2"
|
||||
android:layout_marginBottom="@dimen/dp_8"
|
||||
android:text="@string/txt_upgrade_now"
|
||||
android:textColor="@color/select_color"
|
||||
android:textSize="@dimen/textSize16"
|
||||
@@ -37,7 +38,8 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:background="@drawable/selector_transparent_pressed"
|
||||
android:padding="@dimen/dp_12"
|
||||
android:paddingHorizontal="@dimen/dp_12"
|
||||
android:paddingVertical="@dimen/dp_6"
|
||||
android:text="@string/txt_later"
|
||||
android:textColor="@color/select_color"
|
||||
android:textSize="@dimen/textSize14"
|
||||
|
||||
69
app/src/main/res/layout/fragment_account_cn_phone.xml
Normal file
69
app/src/main/res/layout/fragment_account_cn_phone.xml
Normal file
@@ -0,0 +1,69 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingHorizontal="@dimen/dp_16"
|
||||
android:paddingTop="@dimen/dp_24"
|
||||
android:paddingBottom="@dimen/dp_36"
|
||||
tools:context=".ui.fragment.account.cn.AccountCnPhoneFragment">
|
||||
|
||||
<com.abbidot.tracker.widget.TypefaceTextView
|
||||
style="@style/my_TextView_style_v2"
|
||||
android:text="@string/txt_account"
|
||||
android:textColor="@color/black_color5"
|
||||
android:textSize="@dimen/textSize32"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<com.abbidot.tracker.widget.TypefaceTextView
|
||||
style="@style/my_TextView_style_v2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginTop="@dimen/dp_8"
|
||||
android:gravity="start"
|
||||
android:text="@string/txt_reset_password_tips"
|
||||
android:textColor="@color/select_color3"
|
||||
android:textSize="@dimen/textSize14"
|
||||
android:visibility="gone"
|
||||
app:typeface="@string/roboto_regular_font" />
|
||||
|
||||
<include
|
||||
android:id="@+id/il_create_account_v2_email"
|
||||
layout="@layout/layout_input_edit_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_66"
|
||||
android:layout_marginTop="@dimen/dp_32" />
|
||||
|
||||
<com.abbidot.tracker.widget.TypefaceTextView
|
||||
android:id="@+id/tv_email_error_tip_create_account_v2"
|
||||
style="@style/my_TextView_style_v2"
|
||||
android:layout_below="@id/il_login_v2_email_address"
|
||||
android:layout_marginTop="@dimen/dp_10"
|
||||
android:text="@string/txt_valid_email"
|
||||
android:textColor="@color/red_color2"
|
||||
android:textSize="@dimen/textSize14"
|
||||
android:visibility="gone"
|
||||
app:typeface="@string/roboto_regular_font" />
|
||||
|
||||
<include
|
||||
android:id="@+id/il_create_account_v2_policy_terms_check"
|
||||
layout="@layout/layout_create_account_policy_terms"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_18" />
|
||||
|
||||
<com.abbidot.tracker.widget.TypefaceButton
|
||||
android:id="@+id/btn_create_account_v2_continue"
|
||||
style="@style/my_match_RoundRect_Button_style"
|
||||
android:text="@string/txt_continue"
|
||||
app:qmui_radius="@dimen/dp_64"
|
||||
app:typeface="@string/roboto_bold_font" />
|
||||
|
||||
<com.abbidot.tracker.widget.TypefaceTextView
|
||||
style="@style/my_TextView_style_v2"
|
||||
android:layout_width="match_parent"
|
||||
android:text="@string/txt_verify_your_email"
|
||||
android:textColor="@color/select_color3"
|
||||
android:textSize="@dimen/textSize14"
|
||||
app:typeface="@string/roboto_regular_font" />
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
@@ -1060,5 +1060,6 @@
|
||||
<string name="txt_already_min_size">已是最小尺寸</string>
|
||||
|
||||
<string name="txt_use_valid_phone">请使用有效的手机号码</string>
|
||||
<string name="txt_account">账户</string>
|
||||
|
||||
</resources>
|
||||
@@ -672,7 +672,7 @@
|
||||
<string name="txt_add_tracker_tip2">Device already bound, please verify \nand try again</string>
|
||||
<string name="txt_add_tracker">Add Tracker</string>
|
||||
<string name="txt_success_paired">Successfully\nPaired</string>
|
||||
<string name="txt_choose_your_plan">Choose your plan</string>
|
||||
<string name="txt_choose_your_plan">Choose Your Plan</string>
|
||||
<string name="txt_benefits">Benefits</string>
|
||||
<string name="txt_monthly_subscription">Monthly Subscription</string>
|
||||
<string name="txt_money_unit">$%s</string>
|
||||
@@ -1118,5 +1118,6 @@
|
||||
<string name="txt_already_min_size">Already at minimum size</string>
|
||||
|
||||
<string name="txt_use_valid_phone">请使用有效的手机号码</string>
|
||||
<string name="txt_account">账户</string>
|
||||
|
||||
</resources>
|
||||
Reference in New Issue
Block a user