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 { 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()));

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

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