diff --git a/OCH/mogo-och-bus-passenger/src/jinlvvan/java/com/mogo/och/bus/passenger/ui/MapAndLiveVideoView.kt b/OCH/mogo-och-bus-passenger/src/jinlvvan/java/com/mogo/och/bus/passenger/ui/MapAndLiveVideoView.kt
index 736f5e3809..eadb80b11c 100644
--- a/OCH/mogo-och-bus-passenger/src/jinlvvan/java/com/mogo/och/bus/passenger/ui/MapAndLiveVideoView.kt
+++ b/OCH/mogo-och-bus-passenger/src/jinlvvan/java/com/mogo/och/bus/passenger/ui/MapAndLiveVideoView.kt
@@ -56,6 +56,9 @@ class MapAndLiveVideoView @JvmOverloads constructor(
}
fun changeToSecondView(){
+ if (viewPager?.currentItem == 0){
+ startPosition = 0
+ }
viewPager?.currentItem = 1
}
diff --git a/OCH/mogo-och-bus-passenger/src/jinlvvan/res/drawable-nodpi/bus_p_route_bg.png b/OCH/mogo-och-bus-passenger/src/jinlvvan/res/drawable-nodpi/bus_p_route_bg.png
index 5c4f302cc2..b40a4889bf 100644
Binary files a/OCH/mogo-och-bus-passenger/src/jinlvvan/res/drawable-nodpi/bus_p_route_bg.png and b/OCH/mogo-och-bus-passenger/src/jinlvvan/res/drawable-nodpi/bus_p_route_bg.png differ
diff --git a/OCH/mogo-och-bus-passenger/src/jinlvvan/res/layout/bus_p_route_fragment.xml b/OCH/mogo-och-bus-passenger/src/jinlvvan/res/layout/bus_p_route_fragment.xml
index 41dcee858f..fb2ca1b240 100644
--- a/OCH/mogo-och-bus-passenger/src/jinlvvan/res/layout/bus_p_route_fragment.xml
+++ b/OCH/mogo-och-bus-passenger/src/jinlvvan/res/layout/bus_p_route_fragment.xml
@@ -8,12 +8,13 @@
android:layout_marginBottom="@dimen/dp_40"
app:roundLayoutRadius="@dimen/dp_40">
-
+ android:src="@drawable/bus_p_route_bg"
+ android:scaleType="fitXY"/>
Math.abs(deltaY)) {
- intercepted = true;
- }
- break;
- default:
- break;
- }
- mLastXIntercept = x;
- mLastYIntercept = y;
- return intercepted;
- }
+// @Override
+// public boolean onDown(MotionEvent e) {
+// return true;
+// }
+//
+// @Override
+// public void onShowPress(MotionEvent e) {
+// }
- @Override
- public boolean onTouchEvent(MotionEvent event) {
- if (mDetector != null) {
- return mDetector.onTouchEvent(event);
- } else {
- return super.onTouchEvent(event);
- }
- }
+// @Override
+// public boolean onSingleTapUp(MotionEvent e) {
+// return true;
+// }
+//
+// @Override
+// public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) {
+// return true;
+// }
- @Override
- public boolean onDown(MotionEvent e) {
- return true;
- }
-
- @Override
- public void onShowPress(MotionEvent e) {
- }
-
- @Override
- public boolean onSingleTapUp(MotionEvent e) {
- return true;
- }
-
- @Override
- public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) {
- return true;
- }
-
- @Override
- public void onLongPress(MotionEvent e) {
- }
-
- @Override
- public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
- if (e2 != null) {
- float deltaX = e2.getX() - (e1 != null ? e1.getX() : 0f);
- float deltaY = e2.getY() - (e1 != null ? e1.getY() : 0f);
- if (Math.abs(deltaX) > Math.abs(deltaY)) {
- if (mScrollListener != null) {
- mScrollListener.onScroll(velocityX < 0);
- }
- }
- }
- return true;
- }
+// @Override
+// public void onLongPress(MotionEvent e) {
+// }
+//
+// @Override
+// public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
+// if (e2 != null) {
+// float deltaX = e2.getX() - (e1 != null ? e1.getX() : 0f);
+// float deltaY = e2.getY() - (e1 != null ? e1.getY() : 0f);
+// if (Math.abs(deltaX) > Math.abs(deltaY)) {
+// if (mScrollListener != null) {
+// mScrollListener.onScroll(velocityX < 0);
+// }
+// }
+// }
+// return true;
+// }
public interface IScrollListener {
void onScroll(boolean isNextPage);
diff --git a/OCH/mogo-och-shuttle-passenger/src/jinlvvan/java/com/mogo/och/bus/passenger/ui/BusPStatusBarView.kt b/OCH/mogo-och-shuttle-passenger/src/jinlvvan/java/com/mogo/och/bus/passenger/ui/BusPStatusBarView.kt
index 3cbe38d985..4bb0bd9403 100644
--- a/OCH/mogo-och-shuttle-passenger/src/jinlvvan/java/com/mogo/och/bus/passenger/ui/BusPStatusBarView.kt
+++ b/OCH/mogo-och-shuttle-passenger/src/jinlvvan/java/com/mogo/och/bus/passenger/ui/BusPStatusBarView.kt
@@ -35,7 +35,7 @@ class BusPStatusBarView @JvmOverloads constructor(
init {
LayoutInflater.from(context).inflate(R.layout.p_bus_view_status_bar, this, true)
- setBackgroundColor(Color.parseColor("#80FFFFFF"))
+ setBackgroundResource(R.drawable.bg_status_bar)
isClickable = true
isFocusable = true
}
diff --git a/OCH/mogo-och-shuttle-passenger/src/jinlvvan/res/drawable/bg_status_bar.xml b/OCH/mogo-och-shuttle-passenger/src/jinlvvan/res/drawable/bg_status_bar.xml
index 36611a9a99..5b8da3c82c 100644
--- a/OCH/mogo-och-shuttle-passenger/src/jinlvvan/res/drawable/bg_status_bar.xml
+++ b/OCH/mogo-och-shuttle-passenger/src/jinlvvan/res/drawable/bg_status_bar.xml
@@ -2,7 +2,8 @@
\ No newline at end of file
diff --git a/OCH/mogo-och-shuttle-passenger/src/jinlvvan/res/layout/bus_p_base_fragment.xml b/OCH/mogo-och-shuttle-passenger/src/jinlvvan/res/layout/bus_p_base_fragment.xml
index 841a1aefed..9f240c07a4 100644
--- a/OCH/mogo-och-shuttle-passenger/src/jinlvvan/res/layout/bus_p_base_fragment.xml
+++ b/OCH/mogo-och-shuttle-passenger/src/jinlvvan/res/layout/bus_p_base_fragment.xml
@@ -27,55 +27,20 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -89,95 +54,6 @@
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent"/>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-