From d569e718a924e77b69f4f6cdd7528ddec2c8fb3b Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Sun, 4 Apr 2021 10:43:51 -0400 Subject: [PATCH] fix navigation actions for fdroid, part 2 --- .../fragments/NotificationsViewerFragment.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/awais/instagrabber/fragments/NotificationsViewerFragment.java b/app/src/main/java/awais/instagrabber/fragments/NotificationsViewerFragment.java index 15d5306d..880db291 100644 --- a/app/src/main/java/awais/instagrabber/fragments/NotificationsViewerFragment.java +++ b/app/src/main/java/awais/instagrabber/fragments/NotificationsViewerFragment.java @@ -93,12 +93,12 @@ public final class NotificationsViewerFragment extends Fragment implements Swipe final NotificationImage notificationImage = model.getArgs().getMedia().get(0); final long mediaId = Long.parseLong(notificationImage.getId().split("_")[0]); if (model.getType() == NotificationType.RESPONDED_STORY) { - final NavDirections action = NotificationsViewerFragmentDirections - .actionNotificationsToStory( - StoryViewerOptions.forStory( + final StoryViewerOptions options = StoryViewerOptions.forStory( mediaId, - model.getArgs().getUsername())); - NavHostFragment.findNavController(NotificationsViewerFragment.this).navigate(action); + model.getArgs().getUsername()); + final Bundle bundle = new Bundle(); + bundle.putSerializable("options", options); + NavHostFragment.findNavController(NotificationsViewerFragment.this).navigate(R.id.action_notifications_to_story, bundle); } else { final AlertDialog alertDialog = new AlertDialog.Builder(context) .setCancelable(false)