Changeset View
Changeset View
Standalone View
Standalone View
app/src/main/java/it/reyboz/bustorino/fragments/FavoritesFragment.java
| Show First 20 Lines • Show All 216 Lines • ▼ Show 20 Lines | public boolean onContextItemSelected(MenuItem item) { | ||||
| default: | default: | ||||
| return super.onContextItemSelected(item); | return super.onContextItemSelected(item); | ||||
| } | } | ||||
| } | } | ||||
| @Nullable | @Nullable | ||||
| @Override | @Override | ||||
| public View getBaseViewForSnackBar() { | public View getBaseViewForSnackBar() { | ||||
| return null; | return favoriteRecyclerView; | ||||
| } | } | ||||
| void showStops(List<Stop> busStops){ | void showStops(List<Stop> busStops){ | ||||
| // If no data is found show a friendly message | // If no data is found show a friendly message | ||||
| if(BuildConfig.DEBUG) | if(BuildConfig.DEBUG) | ||||
| Log.d("BusTO - Favorites", "We have "+busStops.size()+" favorites in the list"); | Log.d("BusTO - Favorites", "We have "+busStops.size()+" favorites in the list"); | ||||
| if (busStops.size() == 0) { | if (busStops.size() == 0) { | ||||
| favoriteRecyclerView.setVisibility(View.INVISIBLE); | favoriteRecyclerView.setVisibility(View.INVISIBLE); | ||||
| ▲ Show 20 Lines • Show All 73 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