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); }