[3.4.0-map-sdk] code style

This commit is contained in:
zhongchao
2023-09-27 14:21:40 +08:00
parent 2238cb64e0
commit 722607fba4
11 changed files with 318 additions and 321 deletions

View File

@@ -46,8 +46,6 @@ import org.greenrobot.eventbus.EventBus
*/
class SelectLineView : ConstraintLayout, SelectLineViewModel.SelectLineViewCallback {
private val TAG = "OrderInfoView"
constructor(context: Context) : super(context)
constructor(context: Context, attributeSet: AttributeSet) : super(context, attributeSet)
@@ -101,7 +99,7 @@ class SelectLineView : ConstraintLayout, SelectLineViewModel.SelectLineViewCallb
rlv_line_list.layoutManager =
LinearLayoutManager(context, LinearLayoutManager.VERTICAL, false)
rlv_line_list.addItemDecoration(
com.mogo.och.charter.passenger.ui.selectline.layoutmanage.BottomDecoration(
BottomDecoration(
AutoSizeUtils.dp2px(context, 60f)
)
)
@@ -110,7 +108,7 @@ class SelectLineView : ConstraintLayout, SelectLineViewModel.SelectLineViewCallb
rv_site_list.layoutManager =
LinearLayoutManager(context, LinearLayoutManager.VERTICAL, false)
rv_site_list.addItemDecoration(
com.mogo.och.charter.passenger.ui.selectline.layoutmanage.BottomDecoration(
BottomDecoration(
AutoSizeUtils.dp2px(context, 90f)
)
)

View File

@@ -61,7 +61,7 @@ internal class InfoVideoView @JvmOverloads constructor(
"蘑菇车联之红旗车队"
))
add(
com.mogo.och.taxi.passenger.bean.TaxiPassengerVideoPlay(
TaxiPassengerVideoPlay(
"https://img.zhidaohulian.com/fileServer/online_car_hailing/1655708499497/大运会合作解说版.m4v",
"https://img.zhidaohulian.com/fileServer/online_car_hailing/1655969536177/大运会.png",
"蘑菇车联牵手成都大运会"
@@ -79,7 +79,7 @@ internal class InfoVideoView @JvmOverloads constructor(
fun exitFullScreenMode(resetVideoPlayer: Boolean) {
val carouselLayoutManager = rvVideoPlaylist?.layoutManager as CarouselLayoutManager
val (centerItemPosition: Int, player) = getPlayer(carouselLayoutManager)
val (_: Int, player) = getPlayer(carouselLayoutManager)
player?.let {
it.exitFullScreenMode()
it.onVideoPause()
@@ -100,7 +100,7 @@ internal class InfoVideoView @JvmOverloads constructor(
return
}
val carouselLayoutManager = rvVideoPlaylist?.layoutManager as CarouselLayoutManager
val (centerItemPosition: Int, player) = getPlayer(carouselLayoutManager)
val (_: Int, player) = getPlayer(carouselLayoutManager)
when (visibility) {
View.VISIBLE -> {
player?.let {
@@ -218,7 +218,7 @@ internal class InfoVideoView @JvmOverloads constructor(
override fun onWindowFocusChanged(hasWindowFocus: Boolean) {
super.onWindowFocusChanged(hasWindowFocus)
val carouselLayoutManager = rvVideoPlaylist?.layoutManager as CarouselLayoutManager
val (centerItemPosition: Int, player) = getPlayer(carouselLayoutManager)
val (_: Int, player) = getPlayer(carouselLayoutManager)
player?.let {
if(it.isInPlayingState&&!it.isIfCurrentIsFullscreen&&!hasWindowFocus){
player.onVideoPause()