| | |
| | | import android.widget.TextView |
| | | import androidx.core.os.bundleOf |
| | | import androidx.core.view.GravityCompat |
| | | import androidx.core.view.isVisible |
| | | import androidx.drawerlayout.widget.DrawerLayout |
| | | import androidx.fragment.app.Fragment |
| | | import androidx.fragment.app.FragmentPagerAdapter |
| | |
| | | cn.sinata.xldutils.R.color.black |
| | | ).build() |
| | | tv_tip.text = stringBuilder |
| | | tv_tip.isVisible = mViewPager.currentItem != 1 |
| | | |
| | | /* if (isOpen&&func.isNotEmpty()){ |
| | | checkNewVersion() |
| | |
| | | } |
| | | isTripping = true |
| | | tv_tip.text = getString(R.string.您有一笔订单正进行中) |
| | | tv_tip.visible() |
| | | tv_tip.isVisible = mViewPager.currentItem != 1 |
| | | Log.e("当前订单详情: ", "order.state ${order.state}") |
| | | Log.e("当前订单详情: ", "order.orderType ${order.orderType}") |
| | | tv_tip.setOnClickListener { |
| | |
| | | |
| | | fun updateTipText(t: Spannable) { |
| | | tv_tip.text = t |
| | | tv_tip.isVisible = mViewPager.currentItem != 1 |
| | | } |
| | | |
| | | /** |
| | |
| | | IGoApplication.lat = data.getDoubleExtra("lat", 0.0) |
| | | IGoApplication.lon = data.getDoubleExtra("lon", 0.0) |
| | | |
| | | taxiFragment.aMap.moveCamera( |
| | | CameraUpdateFactory.newLatLng( |
| | | LatLng( |
| | | IGoApplication.lat, |
| | | IGoApplication.lon |
| | | lifecycleScope.launchWhenResumed { |
| | | taxiFragment.aMap.moveCamera( |
| | | CameraUpdateFactory.newLatLng( |
| | | LatLng( |
| | | IGoApplication.lat, |
| | | IGoApplication.lon |
| | | ) |
| | | ) |
| | | ) |
| | | ) |
| | | } |
| | | |
| | | Log.e("定位==============》", "${latHome},${lonHome}") |
| | | // finish() |
| | | } else if (!isOpen || func.isEmpty()) { |