mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 14:47:29 +00:00
fix navigation actions for fdroid, part 2
This commit is contained in:
parent
f584b51f64
commit
d569e718a9
@ -93,12 +93,12 @@ public final class NotificationsViewerFragment extends Fragment implements Swipe
|
|||||||
final NotificationImage notificationImage = model.getArgs().getMedia().get(0);
|
final NotificationImage notificationImage = model.getArgs().getMedia().get(0);
|
||||||
final long mediaId = Long.parseLong(notificationImage.getId().split("_")[0]);
|
final long mediaId = Long.parseLong(notificationImage.getId().split("_")[0]);
|
||||||
if (model.getType() == NotificationType.RESPONDED_STORY) {
|
if (model.getType() == NotificationType.RESPONDED_STORY) {
|
||||||
final NavDirections action = NotificationsViewerFragmentDirections
|
final StoryViewerOptions options = StoryViewerOptions.forStory(
|
||||||
.actionNotificationsToStory(
|
|
||||||
StoryViewerOptions.forStory(
|
|
||||||
mediaId,
|
mediaId,
|
||||||
model.getArgs().getUsername()));
|
model.getArgs().getUsername());
|
||||||
NavHostFragment.findNavController(NotificationsViewerFragment.this).navigate(action);
|
final Bundle bundle = new Bundle();
|
||||||
|
bundle.putSerializable("options", options);
|
||||||
|
NavHostFragment.findNavController(NotificationsViewerFragment.this).navigate(R.id.action_notifications_to_story, bundle);
|
||||||
} else {
|
} else {
|
||||||
final AlertDialog alertDialog = new AlertDialog.Builder(context)
|
final AlertDialog alertDialog = new AlertDialog.Builder(context)
|
||||||
.setCancelable(false)
|
.setCancelable(false)
|
||||||
|
Loading…
Reference in New Issue
Block a user