From 19dbdcb3260b435335a8daf60df00fefde9523d5 Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Sun, 21 Mar 2021 21:42:52 -0400 Subject: [PATCH] fix ghost location when tapping media twice --- .../java/awais/instagrabber/fragments/PostViewV2Fragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/awais/instagrabber/fragments/PostViewV2Fragment.java b/app/src/main/java/awais/instagrabber/fragments/PostViewV2Fragment.java index 0daf6561..0d0c7865 100644 --- a/app/src/main/java/awais/instagrabber/fragments/PostViewV2Fragment.java +++ b/app/src/main/java/awais/instagrabber/fragments/PostViewV2Fragment.java @@ -925,7 +925,7 @@ public class PostViewV2Fragment extends SharedElementTransitionDialogFragment im } private void setupLocation(final Location location) { - if (location == null) { + if (location == null || !detailsVisible) { binding.location.setVisibility(View.GONE); return; }