1. 目的地车友直接选择40km车友的问题

This commit is contained in:
wangcongtao
2020-09-25 17:45:38 +08:00
parent a073a7b0f1
commit 35b452c4c7
2 changed files with 13 additions and 11 deletions

View File

@@ -66,13 +66,13 @@ public class OnlineCarPanelFragment extends MvpFragment< IOnlineCarPanelView, On
m20KMStrategy.setOnClickListener( new OnPreventFastClickListener() {
@Override
public void onClickImpl( View v ) {
mPresenter.nextStrategy();
mPresenter.next20KMStrategy();
}
} );
m40KMStrategy.setOnClickListener( new OnPreventFastClickListener() {
@Override
public void onClickImpl( View v ) {
mPresenter.nextStrategy();
mPresenter.next40KMStrategy();
}
} );
mErrorPanel.setOnClickListener( new OnPreventFastClickListener() {
@@ -82,10 +82,11 @@ public class OnlineCarPanelFragment extends MvpFragment< IOnlineCarPanelView, On
}
} );
mRootView.setOnClickListener( view -> {} );
mRootView.setOnClickListener( view -> {
} );
}
public void refreshPanel(){
public void refreshPanel() {
mPresenter.refreshPanel();
}

View File

@@ -54,13 +54,14 @@ class OnlineCarPanelPresenter extends Presenter< IOnlineCarPanelView > implement
refreshPanel();
}
public void nextStrategy() {
if ( mStrategy != null ) {
mStrategy = mStrategy.getNext();
}
if ( mStrategy != null ) {
loadOnlineCar();
}
public void next20KMStrategy() {
mStrategy = OnlineCarStrategy.Strategy2;
loadOnlineCar();
}
public void next40KMStrategy() {
mStrategy = OnlineCarStrategy.Strategy3;
loadOnlineCar();
}
public void refreshPanel() {