Skip to content

Commit

Permalink
fix 模拟导航微调功能 点击'修改'时影响进度的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jiayu.liu committed Nov 15, 2024
1 parent cdae6bc commit 7aa9787
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -334,17 +334,20 @@ class FloatingViewManger private constructor() {
}

override fun onStopTrackingTouch(seekBar: SeekBar?) {
val speed = naviAdjust?.speed_nav_view!!.getCurValue()
changeNaviInfo(seekBar!!.progress, speed)
seekBar?.let {
changeNaviInfo(
it.progress,
naviAdjust?.speed_nav_view!!.getCurValue()
)
}
}

})

//修改参数
ClickUtils.applySingleDebouncing(naviAdjust?.btn_nav_change!!) {
ToastUtils.showShort("修改成功")
val index = naviAdjust?.road_nav_seekbar!!.progress
val speed = naviAdjust?.speed_nav_view!!.getCurValue()
changeNaviInfo(index, speed)
changeNaviInfo(speed = speed)
}

//关闭微调悬浮窗
Expand Down Expand Up @@ -377,9 +380,6 @@ class FloatingViewManger private constructor() {
}

private fun changeNaviInfo(index: Int = -1, speed: Int = 0) {
if (index == -1 || speed == 0) {
return
}
listener?.changeNaviInfo(index, speed)
}

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
30 changes: 0 additions & 30 deletions common/src/main/res/drawable-v24/ic_launcher_foreground.xml

This file was deleted.

Binary file removed common/src/main/res/drawable-xxxhdpi/ic_avatar.webp
Binary file not shown.
Binary file removed common/src/main/res/drawable-xxxhdpi/ic_share.png
Binary file not shown.
2 changes: 1 addition & 1 deletion common/src/main/res/layout/layout_appbar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
android:layout_height="wrap_content"
android:onClick="@{OnClickListener}"
android:paddingHorizontal="5dp"
android:src="@drawable/ic_back"
android:src="@drawable/common_ic_appbar_back"
android:visibility="@{isGoneBack?View.GONE:View.VISIBLE}"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
Expand Down

0 comments on commit 7aa9787

Please sign in to comment.