Changeset View
Changeset View
Standalone View
Standalone View
src/it/reyboz/bustorino/fragments/ResultListFragment.java
Show First 20 Lines • Show All 296 Lines • ▼ Show 20 Lines | public void setTextViewMessage(String message) { | ||||
addToFavorites.setClickable(true); | addToFavorites.setClickable(true); | ||||
addToFavorites.setOnClickListener(new View.OnClickListener() { | addToFavorites.setOnClickListener(new View.OnClickListener() { | ||||
@Override | @Override | ||||
public void onClick(View v) { | public void onClick(View v) { | ||||
// add/remove the stop in the favorites | // add/remove the stop in the favorites | ||||
mListener.toggleLastStopToFavorites(); | mListener.toggleLastStopToFavorites(); | ||||
} | } | ||||
}); | }); | ||||
break; | |||||
case STOPS: | case STOPS: | ||||
addToFavorites.setClickable(false); | addToFavorites.setClickable(false); | ||||
break; | break; | ||||
} | } | ||||
messageTextView.setVisibility(View.VISIBLE); | messageTextView.setVisibility(View.VISIBLE); | ||||
} | } | ||||
} | } | ||||
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