Changeset View
Changeset View
Standalone View
Standalone View
src/it/reyboz/bustorino/fragments/FragmentHelper.java
| Show First 20 Lines • Show All 146 Lines • ▼ Show 20 Lines | public void createStopListFragment(List<Stop> resultList, String query, boolean addToBackStack){ | ||||
| if(managerWeakRef.get()==null || shouldHaltAllActivities) { | if(managerWeakRef.get()==null || shouldHaltAllActivities) { | ||||
| //SOMETHING WENT VERY WRONG | //SOMETHING WENT VERY WRONG | ||||
| Log.e(DEBUG_TAG, "We are asked for a new stop but we can't show anything"); | Log.e(DEBUG_TAG, "We are asked for a new stop but we can't show anything"); | ||||
| return; | return; | ||||
| } | } | ||||
| attachFragmentToContainer(managerWeakRef.get(),listfragment, | attachFragmentToContainer(managerWeakRef.get(),listfragment, | ||||
| new AttachParameters("search_"+query, false,addToBackStack)); | new AttachParameters("search_"+query, false,addToBackStack)); | ||||
| listfragment.setStopList(resultList); | listfragment.setStopList(resultList); | ||||
| listenerMain.readyGUIfor(FragmentKind.STOPS); | |||||
| toggleSpinner(false); | toggleSpinner(false); | ||||
| } | } | ||||
| /** | /** | ||||
| * Wrapper for toggleSpinner in Activity | * Wrapper for toggleSpinner in Activity | ||||
| * @param on new status of spinner system | * @param on new status of spinner system | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 108 Lines • Show Last 20 Lines | |||||
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