public void changeMode(boolean getBike) { this.getBike = getBike; mDbHelper.changeMode(this.getBike); this.populateList(this.view_all); infoLayer.update(); mapView.invalidate(); }
public void view_near() { try { mDbHelper.populateStations(stations.getHome().getPoint(), stations.getHome().getRadius()); populateList(false); if (!infoLayer.isPopulated()) { StationOverlay current = stations.getCurrent(); if (current != null) { infoLayer.inflateStation(current); current.setSelected(true, this.getBike); } else { infoLayer.inflateMessage(getString(R.string.no_bikes_around)); } } } catch (Exception e) { } ; }