fix navigation actions for fdroid, part 2

This commit is contained in:
Austin Huang 2021-04-04 10:43:51 -04:00
parent f584b51f64
commit d569e718a9
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
1 changed files with 5 additions and 5 deletions

View File

@ -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)