Archived
0

fix change station

This commit is contained in:
iMoHax
2014-11-26 23:14:51 +03:00
parent 7e8670c284
commit deab269a5c

View File

@@ -117,8 +117,7 @@ public class OffersController {
stationsBar.getButtons().get(0).setSelected(true); stationsBar.getButtons().get(0).setSelected(true);
} }
station = stations.isEmpty() ? null : stations.get(0); fillTables(stations.isEmpty() ? null : stations.get(0));
fillTables(station);
} }
private ToggleButton buildStationNode(StationModel station){ private ToggleButton buildStationNode(StationModel station){
@@ -129,6 +128,7 @@ public class OffersController {
private void fillTables(StationModel station){ private void fillTables(StationModel station){
LOG.info("Change station to {}", station); LOG.info("Change station to {}", station);
this.station = station;
sells.clear(); sells.clear();
buys.clear(); buys.clear();
distance.setText(""); distance.setText("");