mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +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)
|
||||
public void launchZoomActivity(View view) {
|
||||
if (media.getImageUrl() != null) {
|
||||
Context ctx = view.getContext();
|
||||
ctx.startActivity(
|
||||
new Intent(ctx,ZoomableActivity.class).setData(Uri.parse(media.getImageUrl()))
|
||||
new Intent(ctx, ZoomableActivity.class).setData(Uri.parse(media.getImageUrl()))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onResume() {
|
||||
|
|
|
|||
|
|
@ -1120,9 +1120,7 @@ public class NearbyParentFragment extends CommonsDaggerSupportFragment
|
|||
boolean filterForPlaceState,
|
||||
boolean filterForAllNoneType) {
|
||||
|
||||
// Remove the previous markers before updating them
|
||||
hideAllMarkers();
|
||||
|
||||
for (MarkerPlaceGroup markerPlaceGroup : NearbyController.markerLabelList) {
|
||||
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
|
||||
*/
|
||||
|
||||
private void hideAllMArkers() {
|
||||
private void hideAllMarkers() {
|
||||
VectorDrawableCompat vectorDrawable;
|
||||
vectorDrawable = VectorDrawableCompat.create(
|
||||
getContext().getResources(), R.drawable.ic_custom_greyed_out_marker, getContext().getTheme());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue