Changeset View
Changeset View
Standalone View
Standalone View
src/it/reyboz/bustorino/fragments/MainScreenFragment.java
| Show First 20 Lines • Show All 312 Lines • ▼ Show 20 Lines | public void onResume() { | ||||
| frag.setReloadOnResume(false); | frag.setReloadOnResume(false); | ||||
| } | } | ||||
| suppressArrivalsReload = false; | suppressArrivalsReload = false; | ||||
| } | } | ||||
| if(pendingStopID!=null){ | if(pendingStopID!=null){ | ||||
| requestArrivalsForStopID(pendingStopID); | requestArrivalsForStopID(pendingStopID); | ||||
| pendingStopID = null; | pendingStopID = null; | ||||
| } | } | ||||
| mListener.readyGUIfor(FragmentKind.MAIN_SCREEN_FRAGMENT); | |||||
| } | } | ||||
| @Override | @Override | ||||
| public void onPause() { | public void onPause() { | ||||
| //mainHandler = null; | //mainHandler = null; | ||||
| locmgr = null; | locmgr = null; | ||||
| super.onPause(); | super.onPause(); | ||||
| } | } | ||||
| /* | /* | ||||
| GUI METHODS | GUI METHODS | ||||
| */ | */ | ||||
| /** | /** | ||||
| * QR scan button clicked | * QR scan button clicked | ||||
| * | * | ||||
| * @param v View QRButton clicked | * @param v View QRButton clicked | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 148 Lines • ▼ Show 20 Lines | public void readyGUIfor(FragmentKind fragmentType) { | ||||
| if (getOption(OPTION_SHOW_LEGEND, true)) { | if (getOption(OPTION_SHOW_LEGEND, true)) { | ||||
| showHints(); | showHints(); | ||||
| } | } | ||||
| break; | break; | ||||
| case STOPS: | case STOPS: | ||||
| prepareGUIForBusStops(); | prepareGUIForBusStops(); | ||||
| break; | break; | ||||
| default: | default: | ||||
| Log.e("BusTO Activity", "Called readyGUI with unsupported type of Fragment"); | Log.d(DEBUG_TAG, "Fragment type is unknown"); | ||||
| return; | return; | ||||
| } | } | ||||
| // Shows hints | // Shows hints | ||||
| } | } | ||||
| /** | /** | ||||
| ▲ Show 20 Lines • Show All 127 Lines • ▼ Show 20 Lines | class NearbyStopsRequester implements Runnable { | ||||
| locManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 10, 0.1f, listener); | locManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 10, 0.1f, listener); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| 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