From f4d1575edb75ddce1e035912459a3d96a7243bef Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Tue, 18 May 2021 16:24:37 -0400 Subject: [PATCH] close #1263 --- .../instagrabber/fragments/NotificationsViewerFragment.java | 1 + .../java/awais/instagrabber/fragments/StoryViewerFragment.java | 1 + 2 files changed, 2 insertions(+) diff --git a/app/src/main/java/awais/instagrabber/fragments/NotificationsViewerFragment.java b/app/src/main/java/awais/instagrabber/fragments/NotificationsViewerFragment.java index c443652b..c6ccff9f 100644 --- a/app/src/main/java/awais/instagrabber/fragments/NotificationsViewerFragment.java +++ b/app/src/main/java/awais/instagrabber/fragments/NotificationsViewerFragment.java @@ -114,6 +114,7 @@ public final class NotificationsViewerFragment extends Fragment implements Swipe bundle.putSerializable(PostViewV2Fragment.ARG_MEDIA, feedModel); try { navController.navigate(R.id.action_global_post_view, bundle); + alertDialog.dismiss(); } catch (Exception e) { Log.e(TAG, "onSuccess: ", e); } diff --git a/app/src/main/java/awais/instagrabber/fragments/StoryViewerFragment.java b/app/src/main/java/awais/instagrabber/fragments/StoryViewerFragment.java index c9a7f1d4..33626e0c 100644 --- a/app/src/main/java/awais/instagrabber/fragments/StoryViewerFragment.java +++ b/app/src/main/java/awais/instagrabber/fragments/StoryViewerFragment.java @@ -469,6 +469,7 @@ public class StoryViewerFragment extends Fragment { bundle.putSerializable(PostViewV2Fragment.ARG_MEDIA, feedModel); try { navController.navigate(R.id.action_global_post_view, bundle); + alertDialog.dismiss(); } catch (Exception e) { Log.e(TAG, "openPostDialog: ", e); }