From 5c2d622d800bd13ffcbb0b1f6f6ebc1e20146374 Mon Sep 17 00:00:00 2001 From: tongchenfei Date: Wed, 3 Feb 2021 19:50:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BD=91=E7=BA=A6=E8=BD=A6?= =?UTF-8?q?=E7=AB=99=E7=82=B9=E5=8D=A1=E7=89=87=E8=B7=9D=E7=A6=BB=E4=B8=8A?= =?UTF-8?q?=E7=AB=AF=E8=B7=9D=E7=A6=BB=E4=BB=A5=E5=8F=8A=E5=B0=8F=E5=B7=B4?= =?UTF-8?q?=E8=BD=A6=E7=AB=99=E7=82=B9=E4=BF=A1=E6=81=AF=E8=B7=B3=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../och/bus/adapter/OchBusStationAdapter.java | 17 ++++++++--------- .../mogo/och/bus/fragment/OchBusFragment.java | 4 ++++ .../mogo/och/bus/presenter/OchBusPresenter.java | 4 ++++ OCH/mogo-och/src/main/res/values/dimens.xml | 2 +- 4 files changed, 17 insertions(+), 10 deletions(-) diff --git a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/adapter/OchBusStationAdapter.java b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/adapter/OchBusStationAdapter.java index fa13136735..2657c8cf4c 100644 --- a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/adapter/OchBusStationAdapter.java +++ b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/adapter/OchBusStationAdapter.java @@ -1,7 +1,6 @@ package com.mogo.och.bus.adapter; import android.content.Context; -import android.graphics.Color; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -15,7 +14,6 @@ import com.mogo.och.bus.R; import com.mogo.och.bus.bean.OchBusStation; import com.mogo.och.bus.constant.OchBusConst; import com.mogo.och.bus.view.VerticalDashLineView; -import com.mogo.utils.logger.Logger; import java.util.ArrayList; import java.util.List; @@ -58,12 +56,12 @@ public class OchBusStationAdapter extends RecyclerView.Adapter implements IMogoA @Override public void onArriveAt(AdasOCHData data) { + if (currentStationIndex >= stationList.size() - 1) { + Logger.e(TAG,"到站异常,取消后续操作"); + return; + } Logger.d(TAG, "到站===="); // 当前站改为IDLE,下一站改为STATION_STATUS_STOPED,currentStationIndex增加1 isGoingToNextStation = false; diff --git a/OCH/mogo-och/src/main/res/values/dimens.xml b/OCH/mogo-och/src/main/res/values/dimens.xml index a26a6dba19..74ef46126c 100644 --- a/OCH/mogo-och/src/main/res/values/dimens.xml +++ b/OCH/mogo-och/src/main/res/values/dimens.xml @@ -6,7 +6,7 @@ 40px 24px - 362px + 346px 492px 24px