Changeset View
Changeset View
Standalone View
Standalone View
src/it/reyboz/bustorino/ActivityMain.java
Show First 20 Lines • Show All 777 Lines • ▼ Show 20 Lines | public void toggleSpinner(boolean enable) { | ||||
//swipeRefreshLayout.setRefreshing(true); | //swipeRefreshLayout.setRefreshing(true); | ||||
progressBar.setVisibility(View.VISIBLE); | progressBar.setVisibility(View.VISIBLE); | ||||
} else { | } else { | ||||
swipeRefreshLayout.setRefreshing(false); | swipeRefreshLayout.setRefreshing(false); | ||||
progressBar.setVisibility(View.GONE); | progressBar.setVisibility(View.GONE); | ||||
} | } | ||||
} | } | ||||
@Override | |||||
public void showMapCenteredOnStop(Stop stop) { | |||||
//nothing to do | |||||
//TODO: delete this activity altogether | |||||
Log.w(DEBUG_TAG,"Asked to show the stop on the map"); | |||||
} | |||||
private void prepareGUIForBusLines() { | private void prepareGUIForBusLines() { | ||||
swipeRefreshLayout.setEnabled(true); | swipeRefreshLayout.setEnabled(true); | ||||
swipeRefreshLayout.setVisibility(View.VISIBLE); | swipeRefreshLayout.setVisibility(View.VISIBLE); | ||||
actionHelpMenuItem.setVisible(true); | actionHelpMenuItem.setVisible(true); | ||||
} | } | ||||
private void prepareGUIForBusStops() { | private void prepareGUIForBusStops() { | ||||
swipeRefreshLayout.setEnabled(false); | swipeRefreshLayout.setEnabled(false); | ||||
Show All 36 Lines | public class ActivityMain extends GeneralActivity implements FragmentListenerMain { | ||||
} | } | ||||
private void openIceweasel(String url){ | private void openIceweasel(String url){ | ||||
utils.openIceweasel(url, this); | utils.openIceweasel(url, this); | ||||
} | } | ||||
} | } | ||||
No newline at end of file | No newline at end of file |
Public contents are in Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) or GNU Free Documentation License (at your option) unless otherwise noted. · Contact / Register