mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
This commit is contained in:
parent
63018fcbd5
commit
bff923135e
2 changed files with 7 additions and 7 deletions
|
|
@ -209,11 +209,13 @@ public class MediaDetailFragment extends CommonsDaggerSupportFragment {
|
||||||
|
|
||||||
@OnClick(R.id.mediaDetailImageViewSpacer)
|
@OnClick(R.id.mediaDetailImageViewSpacer)
|
||||||
public void launchZoomActivity(View view) {
|
public void launchZoomActivity(View view) {
|
||||||
|
if (media.getImageUrl() != null) {
|
||||||
Context ctx = view.getContext();
|
Context ctx = view.getContext();
|
||||||
ctx.startActivity(
|
ctx.startActivity(
|
||||||
new Intent(ctx,ZoomableActivity.class).setData(Uri.parse(media.getImageUrl()))
|
new Intent(ctx, ZoomableActivity.class).setData(Uri.parse(media.getImageUrl()))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onResume() {
|
public void onResume() {
|
||||||
|
|
|
||||||
|
|
@ -1120,9 +1120,7 @@ public class NearbyParentFragment extends CommonsDaggerSupportFragment
|
||||||
boolean filterForPlaceState,
|
boolean filterForPlaceState,
|
||||||
boolean filterForAllNoneType) {
|
boolean filterForAllNoneType) {
|
||||||
|
|
||||||
// Remove the previous markers before updating them
|
|
||||||
hideAllMarkers();
|
hideAllMarkers();
|
||||||
|
|
||||||
for (MarkerPlaceGroup markerPlaceGroup : NearbyController.markerLabelList) {
|
for (MarkerPlaceGroup markerPlaceGroup : NearbyController.markerLabelList) {
|
||||||
Place place = markerPlaceGroup.getPlace();
|
Place place = markerPlaceGroup.getPlace();
|
||||||
|
|
||||||
|
|
@ -1217,7 +1215,7 @@ public class NearbyParentFragment extends CommonsDaggerSupportFragment
|
||||||
* since grey icon may lead the users to believe that it is disabled or prohibited contribution
|
* since grey icon may lead the users to believe that it is disabled or prohibited contribution
|
||||||
*/
|
*/
|
||||||
|
|
||||||
private void hideAllMArkers() {
|
private void hideAllMarkers() {
|
||||||
VectorDrawableCompat vectorDrawable;
|
VectorDrawableCompat vectorDrawable;
|
||||||
vectorDrawable = VectorDrawableCompat.create(
|
vectorDrawable = VectorDrawableCompat.create(
|
||||||
getContext().getResources(), R.drawable.ic_custom_greyed_out_marker, getContext().getTheme());
|
getContext().getResources(), R.drawable.ic_custom_greyed_out_marker, getContext().getTheme());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue