|
@ -78,8 +78,7 @@ public final class NotificationsViewerFragment extends Fragment implements Swipe |
|
|
try { |
|
|
try { |
|
|
binding.swipeRefreshLayout.setRefreshing(false); |
|
|
binding.swipeRefreshLayout.setRefreshing(false); |
|
|
Toast.makeText(getContext(), t.getMessage(), Toast.LENGTH_SHORT).show(); |
|
|
Toast.makeText(getContext(), t.getMessage(), Toast.LENGTH_SHORT).show(); |
|
|
} |
|
|
|
|
|
catch(Throwable ignored) {} |
|
|
|
|
|
|
|
|
} catch (Throwable ignored) {} |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
@ -95,7 +94,7 @@ public final class NotificationsViewerFragment extends Fragment implements Swipe |
|
|
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 NavDirections action = NotificationsViewerFragmentDirections |
|
|
.actionNotificationsViewerFragmentToStoryViewerFragment( |
|
|
|
|
|
|
|
|
.actionNotificationsToStory( |
|
|
StoryViewerOptions.forStory( |
|
|
StoryViewerOptions.forStory( |
|
|
mediaId, |
|
|
mediaId, |
|
|
model.getArgs().getUsername())); |
|
|
model.getArgs().getUsername())); |
|
|