暂时关闭了根据运营状态控制UI的方法
This commit is contained in:
@@ -73,6 +73,9 @@ public class OchBusFragment extends BaseOchFragment< OchBusFragment, OchBusPrese
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// 展示站点信息
|
||||
showPanel();
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@@ -158,9 +161,9 @@ public class OchBusFragment extends BaseOchFragment< OchBusFragment, OchBusPrese
|
||||
if ( isArriveEndStation ) {
|
||||
showSlidePanle( "单程结束" );
|
||||
} else if ( isArriveAtStartStation ) {
|
||||
showSlidePanle( "滑动出车" );
|
||||
showSlidePanle( "滑动出发" );
|
||||
} else if ( isArriveAtStation ) {
|
||||
showSlidePanle( "准备出发" );
|
||||
showSlidePanle( "滑动出发" );
|
||||
}
|
||||
|
||||
mCurrentStationName.setText( currentStationName );
|
||||
@@ -220,12 +223,12 @@ public class OchBusFragment extends BaseOchFragment< OchBusFragment, OchBusPrese
|
||||
isOperationStatus = launch;
|
||||
if ( launch ) {
|
||||
tvOperationStatus.setText( "收车" );
|
||||
showSlidePanle("准备出发");
|
||||
showPanel();
|
||||
//showSlidePanle("滑动出发");
|
||||
//showPanel();
|
||||
} else {
|
||||
tvOperationStatus.setText( "出车" );
|
||||
hideSlidePanel();
|
||||
hidPanel();
|
||||
//hideSlidePanel();
|
||||
//hidPanel();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -131,12 +131,12 @@ public abstract class BaseOchFragment<V extends IView, P extends Presenter<V>> e
|
||||
* @param text 指定的文字
|
||||
*/
|
||||
public void showSlidePanle(String text) {
|
||||
if (isOperationStatus) {
|
||||
//if (isOperationStatus) {
|
||||
getActivity().runOnUiThread(() -> {
|
||||
slidePanelView.setText(text);
|
||||
slidePanelView.setVisibility(View.VISIBLE);
|
||||
});
|
||||
}
|
||||
//}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user