暂时关闭了根据运营状态控制UI的方法

This commit is contained in:
董宏宇
2021-05-14 12:37:09 +08:00
parent 5f5964487a
commit 088de09315
2 changed files with 11 additions and 8 deletions

View File

@@ -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();
}
}
}

View File

@@ -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);
});
}
//}
}
/**