Changeset View
Changeset View
Standalone View
Standalone View
src/it/reyboz/bustorino/fragments/ArrivalsFragment.java
Show First 20 Lines • Show All 270 Lines • ▼ Show 20 Lines | public class ArrivalsFragment extends ResultListFragment implements LoaderManager.LoaderCallbacks<Cursor> { | ||||
} | } | ||||
/** | /** | ||||
* Set the message of the arrival times source | * Set the message of the arrival times source | ||||
* @param p Palina with the arrival times | * @param p Palina with the arrival times | ||||
*/ | */ | ||||
protected void showArrivalsSources(Palina p){ | protected void showArrivalsSources(Palina p){ | ||||
final Passaggio.Source source = p.getPassaggiSourceIfAny(); | final Passaggio.Source source = p.getPassaggiSourceIfAny(); | ||||
if (source == null){ | |||||
Log.e(DEBUG_TAG, "NULL SOURCE"); | |||||
return; | |||||
} | |||||
String source_txt; | String source_txt; | ||||
switch (source){ | switch (source){ | ||||
case GTTJSON: | case GTTJSON: | ||||
source_txt = getString(R.string.gttjsonfetcher); | source_txt = getString(R.string.gttjsonfetcher); | ||||
break; | break; | ||||
case FiveTAPI: | case FiveTAPI: | ||||
source_txt = getString(R.string.fivetapifetcher); | source_txt = getString(R.string.fivetapifetcher); | ||||
break; | break; | ||||
▲ Show 20 Lines • Show All 197 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