1. 目的地车友直接选择40km车友的问题
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user