Location detail now displays images

This commit is contained in:
sebas
2021-01-06 11:12:33 +01:00
parent 738a733b72
commit 5e76ced998
3 changed files with 39 additions and 22 deletions

View File

@@ -54,6 +54,7 @@ public class LocationFragment extends Fragment {
LocationDetailFragment locationDetailFragment = new LocationDetailFragment();
Bundle locationBundle = new Bundle();
locationBundle.putParcelable("location", this.locationList.get(clickedPosition));
locationDetailFragment.setLocation(this.locationList.get(clickedPosition));
locationDetailFragment.setArguments(locationBundle);
((FragmentActivity) view.getContext()).getSupportFragmentManager().beginTransaction().replace(R.id.fragment_layout, locationDetailFragment).addToBackStack(null).commit();
});