Changeset View
Changeset View
Standalone View
Standalone View
src/it/reyboz/bustorino/fragments/ArrivalsFragment.java
Show First 20 Lines • Show All 179 Lines • ▼ Show 20 Lines | public View onCreateView(LayoutInflater inflater, ViewGroup container, | ||||
Toast.makeText(getContext(), | Toast.makeText(getContext(), | ||||
getString(R.string.route_towards_unknown, routeName), Toast.LENGTH_SHORT).show(); | getString(R.string.route_towards_unknown, routeName), Toast.LENGTH_SHORT).show(); | ||||
} else { | } else { | ||||
Toast.makeText(getContext(), | Toast.makeText(getContext(), | ||||
getString(R.string.route_towards_destination, routeName, r.destinazione), Toast.LENGTH_SHORT).show(); | getString(R.string.route_towards_destination, routeName, r.destinazione), Toast.LENGTH_SHORT).show(); | ||||
} | } | ||||
}); | }); | ||||
String displayName = getArguments().getString(STOP_TITLE); | String displayName = getArguments().getString(STOP_TITLE); | ||||
if(displayName!=null) | |||||
setTextViewMessage(String.format( | setTextViewMessage(String.format( | ||||
getString(R.string.passages), displayName)); | getString(R.string.passages), displayName)); | ||||
String probablemessage = getArguments().getString(MESSAGE_TEXT_VIEW); | String probablemessage = getArguments().getString(MESSAGE_TEXT_VIEW); | ||||
if (probablemessage != null) { | if (probablemessage != null) { | ||||
//Log.d("BusTO fragment " + this.getTag(), "We have a possible message here in the savedInstaceState: " + probablemessage); | //Log.d("BusTO fragment " + this.getTag(), "We have a possible message here in the savedInstaceState: " + probablemessage); | ||||
messageTextView.setText(probablemessage); | messageTextView.setText(probablemessage); | ||||
▲ Show 20 Lines • Show All 310 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