Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,12 @@ && getParentFragment() instanceof MediaDetailPagerFragment) {

@OnClick(R.id.mediaDetailImageViewSpacer)
public void launchZoomActivity(View view) {
Context ctx = view.getContext();
ctx.startActivity(
new Intent(ctx,ZoomableActivity.class).setData(Uri.parse(media.getImageUrl()))
);
if (media.getImageUrl() != null) {
Context ctx = view.getContext();
ctx.startActivity(
new Intent(ctx, ZoomableActivity.class).setData(Uri.parse(media.getImageUrl()))
);
}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1120,9 +1120,7 @@ public void filterMarkersByLabels(List<Label> selectedLabels,
boolean filterForPlaceState,
boolean filterForAllNoneType) {

// Remove the previous markers before updating them
hideAllMarkers();

for (MarkerPlaceGroup markerPlaceGroup : NearbyController.markerLabelList) {
Place place = markerPlaceGroup.getPlace();

Expand Down Expand Up @@ -1217,7 +1215,7 @@ public void updateMarker(boolean isBookmarked, Place place, @Nullable fr.free.nr
* since grey icon may lead the users to believe that it is disabled or prohibited contribution
*/

private void hideAllMArkers() {
private void hideAllMarkers() {
VectorDrawableCompat vectorDrawable;
vectorDrawable = VectorDrawableCompat.create(
getContext().getResources(), R.drawable.ic_custom_greyed_out_marker, getContext().getTheme());
Expand Down