Browse Source

Long name causing compile issues on windows?

renovate/org.robolectric-robolectric-4.x
Ammar Githam 4 years ago
parent
commit
3038a06dca
  1. 5
      app/src/main/java/awais/instagrabber/fragments/NotificationsViewerFragment.java
  2. 2
      app/src/main/res/navigation/notification_viewer_nav_graph.xml

5
app/src/main/java/awais/instagrabber/fragments/NotificationsViewerFragment.java

@ -78,8 +78,7 @@ public final class NotificationsViewerFragment extends Fragment implements Swipe
try {
binding.swipeRefreshLayout.setRefreshing(false);
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]);
if (model.getType() == NotificationType.RESPONDED_STORY) {
final NavDirections action = NotificationsViewerFragmentDirections
.actionNotificationsViewerFragmentToStoryViewerFragment(
.actionNotificationsToStory(
StoryViewerOptions.forStory(
mediaId,
model.getArgs().getUsername()));

2
app/src/main/res/navigation/notification_viewer_nav_graph.xml

@ -97,7 +97,7 @@
android:defaultValue="0L"
app:argType="long" />
<action
android:id="@+id/action_notificationsViewerFragment_to_storyViewerFragment"
android:id="@+id/action_notifications_to_story"
app:destination="@id/storyViewerFragment" />
</fragment>
</navigation>
Loading…
Cancel
Save